-
Notifications
You must be signed in to change notification settings - Fork 48
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
doesDirectoryExist "" changed behaviour #84
Comments
A quick bisecting over releases revelead this change occured between |
@dbdbdb: Thanks for catching this. @hvr: Thanks for looking into this. This was introduced in 5eb35cf . I prefer it this way because it is more consistent with how most things are done in At this point I don't think I will be reverting this change (though you can try to convince me otherwise!). Rather, I would argue if a |
I've never seen that semantic in any other language so it would come as a surprise for most I guess. For example these languages return False for "" and True for ".": Bash: [ -d "" ] So it should at least be clearly documented. |
Okay, upon further thought, I decided to revert the change, mainly because operating systems do not treat It's unfortunate that some of the existing API (i.e. I'm making some significant refactoring because of this, but the only user-facing change should be that |
doesDirectoryExist for the empty string has changed behaviour and now say yes. I have some old code that stopped working when updating this lib.
Couldn't see it documented so I guess it is a bug?
The text was updated successfully, but these errors were encountered: