Duplicating a file can wipe the original
mattmcdonald-uk opened this issue · 3 comments
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Duplicating a file in Tree View can cause the original file to be wiped if you just change the case of the file name.
Steps to Reproduce
- Right click a file in Tree View and select 'Duplicate'.
- Change the case of a character in the filename (e.g. change Foo.txt to FOo.txt)
Expected behavior:
The original and duplicated file to exist, both with the original content.
Actual behavior:
The duplicated file is not created, and the original is wiped.
Reproduces how often:
100%
Versions
1.45.0
Additional Information
Occuring on macOS 10.15.4
In the majority of cases, macOS has case-insensitive file systems (or file systems that are functionally so). So we shouldn't be allowing you to name a file that differs only by case. We won't be able to deliver you the expected behavior, but we should show an error instead of wiping the original.
looks like atom/tree-view tries to handle this but something there isn't working on macOS.