Skip to content

Commit

Permalink
Revert "fix Issue 11789 - No setAttributes to complement getAttributes"
Browse files Browse the repository at this point in the history
This reverts commit c124140.
  • Loading branch information
MartinNowak committed Dec 21, 2013
1 parent c124140 commit f2e36c6
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions std/file.d
Original file line number Diff line number Diff line change
Expand Up @@ -962,25 +962,6 @@ uint getLinkAttributes(in char[] name)
}


/++
Set the attributes of the given file.
Throws:
$(D FileException) if the given file does not exist.
+/
void setAttributes(in char[] name, uint attributes)
{
version (Windows)
{
cenforce(SetFileAttributesW(std.utf.toUTF16z(name), attributes), name);
}
else version (Posix)
{
cenforce(!chmod(toStringz(name), attributes), name);
}
}


/++
Returns whether the given file is a directory.
Expand Down

0 comments on commit f2e36c6

Please sign in to comment.