- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Fail to rename a file with different case in Mac #484
Comments
The mac filesystem is case insensitive so a rename of |
|
I don't know the work effort to do this, it would depend on if |
File name comparisons are done without regard to case, however, the fs is also case-preserving, meaning that file names are stored and retrieved exactly how they were entered. This is generally the case for most modern/common "case-insensitive" filesystems I believe (unless you are on something like DOS, which is not a modern OS). Just because the current host/fs has a case-insensitive fs doesn't mean that that will always be the case for a given repo/codebase. For example, if you were working on a shared codebase on macOS, it may become necessary at some point (hypothetically speaking) to rename a The error is being thrown by Plenary itself in I don't think the fix is trivial, nor could it be perfect and unsusceptible to edge-case race conditions, but I may give it a shot and send in a patch/pr 😄. I'm not super familiar with Plenary's code though, although it does seem that
Therefore, the solution will probably end up being something rather manual and "hacky", if the current behavior as described in |
I think I may have almost reached a solution. On an unrelated note, I also came across 2 or 3 small bugs in |
Path:rename() does not allow to rename "abc.txt" to "Abc.txt"
The text was updated successfully, but these errors were encountered: