Skip to content

Commit

Permalink
FileSystemPath : improve directory listing time on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Jun 22, 2021
1 parent 3d62d35 commit ceddbeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gaffer/FileSystemPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ std::string FileSystemPath::getOwner( const std::string &pathString ) const


// Get the handle of the file object.
hFile = CreateFile( pathString.c_str(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
hFile = CreateFile( pathString.c_str(), 0, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);

// Check GetLastError for CreateFile error code.
if (hFile == INVALID_HANDLE_VALUE) {
Expand Down

0 comments on commit ceddbeb

Please sign in to comment.