-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
At the moment, FileExists returns false if and only if os.Stat() returns a 'FileNotExist' error. In other error cases, FileExists would return true, while in reality it cannot know. This commit inverts this behaviour, FileExists() now only returns true if it's almost sure that the file really exists. When in doubt, it will return false. As far as I can tell, the existing users should not be negatively impacted by this change.
- Loading branch information
1 parent
ca9236f
commit 6c8ea26
Showing
2 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters