Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions std/file.d
Original file line number Diff line number Diff line change
Expand Up @@ -3610,7 +3610,7 @@ version (StdDdoc)
Throws:
$(LREF FileException) if the file does not exist.
+/
this(string path);
this(return scope string path);

version (Windows)
{
Expand Down Expand Up @@ -3772,7 +3772,7 @@ else version (Windows)
public:
alias name this;

this(string path)
this(return scope string path)
{
import std.datetime.systime : FILETIMEToSysTime;

Expand Down Expand Up @@ -3881,7 +3881,7 @@ else version (Posix)
public:
alias name this;

this(string path)
this(return scope string path)
{
if (!path.exists)
throw new FileException(path, "File does not exist");
Expand Down Expand Up @@ -4424,7 +4424,7 @@ void rmdirRecurse(scope const(char)[] pathname) @safe
}

/// ditto
void rmdirRecurse(ref DirEntry de) @safe
void rmdirRecurse(ref scope DirEntry de) @safe
{
if (!de.isDir)
throw new FileException(de.name, "Not a directory");
Expand Down Expand Up @@ -4459,7 +4459,7 @@ void rmdirRecurse(ref DirEntry de) @safe
//"rmdirRecurse(in char[] pathname)" implementation. That is needlessly
//expensive.
//A DirEntry is a bit big (72B), so keeping the "by ref" signature is desirable.
void rmdirRecurse(DirEntry de) @safe
void rmdirRecurse(scope DirEntry de) @safe
{
rmdirRecurse(de);
}
Expand Down