Skip to content

Commit 147bc37

Browse files
committed
Rename _prefix to _namePrefix
1 parent 1b7c7cd commit 147bc37

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

std/file.d

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3846,7 +3846,7 @@ else version (Windows)
38463846

38473847
this(return scope string path, return scope string prefix)
38483848
{
3849-
_prefix = prefix;
3849+
_namePrefix = prefix;
38503850
this(path);
38513851
}
38523852

@@ -3857,7 +3857,7 @@ else version (Windows)
38573857
import std.datetime.systime : FILETIMEToSysTime;
38583858
import std.path : buildPath;
38593859

3860-
_prefix = prefix;
3860+
_namePrefix = prefix;
38613861

38623862
fd.cFileName[$ - 1] = 0;
38633863

@@ -3873,7 +3873,7 @@ else version (Windows)
38733873
@property string name() const pure nothrow return scope
38743874
{
38753875
import std.string : chompPrefix;
3876-
return _name.chompPrefix(_prefix);
3876+
return _name.chompPrefix(_namePrefix);
38773877
}
38783878

38793879
@property string nameWithPrefix() const pure nothrow return scope
@@ -3931,7 +3931,7 @@ else version (Windows)
39313931

39323932
private:
39333933
string _name; /// The file or directory represented by this DirEntry.
3934-
string _prefix; /// A prefix to be chomped off the name (e.g. parent directories of an absolute path).
3934+
string _namePrefix; /// A prefix to be chomped off the name (e.g. parent directories of an absolute path).
39353935

39363936
SysTime _timeCreated; /// The time when the file was created.
39373937
SysTime _timeLastAccessed; /// The time when the file was last accessed.
@@ -3965,7 +3965,7 @@ else version (Posix)
39653965
{
39663966
import std.path : buildPath;
39673967

3968-
_prefix = prefix;
3968+
_namePrefix = prefix;
39693969

39703970
static if (is(typeof(fd.d_namlen)))
39713971
immutable len = fd.d_namlen;
@@ -4005,7 +4005,7 @@ else version (Posix)
40054005
@property string name() const pure nothrow return scope
40064006
{
40074007
import std.string : chompPrefix;
4008-
return _name.chompPrefix(_prefix);
4008+
return _name.chompPrefix(_namePrefix);
40094009
}
40104010

40114011
@property string nameWithPrefix() const pure nothrow return scope
@@ -4143,7 +4143,7 @@ else version (Posix)
41434143
}
41444144

41454145
string _name; /// The file or directory represented by this DirEntry.
4146-
string _prefix; /// A prefix to be chomped off the name (e.g. parent directories of an absolute path).
4146+
string _namePrefix; /// A prefix to be chomped off the name (e.g. parent directories of an absolute path).
41474147

41484148
stat_t _statBuf = void; /// The result of stat().
41494149
uint _lstatMode; /// The stat mode from lstat().

0 commit comments

Comments
 (0)