Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std.file: Use GetFileAttributesEx to query file attributes on Windows #513

Merged
merged 4 commits into from May 6, 2012

Conversation

CyberShadow
Copy link
Member

FindFirstFile and CreateFile may fail in certain circumstances when GetFileAttributesEx would succeed - for example, if the user doesn't have directory listing permissions on the object's containing directory.

GetFileAttributesEx is available on Windows versions starting with Windows 98.

Needs Druntime pull request 190.

FindFirstFile and CreateFile may fail in certain circumstances when
GetFileAttributesEx would succeed - for example, if the user doesn't have
directory listing permissions on the object's containing directory.
@jmdavis
Copy link
Member

jmdavis commented Apr 29, 2012

You're going to need to merge in the latest head (or rebase these changes on top of it), since there appear to be merge conflicts.

Deleting and immediately recreating a file doesn't seem to
always reset the file creation time.
@CyberShadow
Copy link
Member Author

Done (also disabled a minor test that failed on my machine).

jmdavis added a commit that referenced this pull request May 6, 2012
std.file: Use GetFileAttributesEx to query file attributes on Windows
@jmdavis jmdavis merged commit cf2edb6 into dlang:master May 6, 2012
@jmdavis
Copy link
Member

jmdavis commented May 6, 2012

Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants