Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

[Core][File name][Win only]: Name a new file with dots created 2 files #7224

Closed
Zhuyun opened this issue Mar 18, 2014 · 5 comments
Closed

[Core][File name][Win only]: Name a new file with dots created 2 files #7224

Zhuyun opened this issue Mar 18, 2014 · 5 comments

Comments

@Zhuyun
Copy link

Zhuyun commented Mar 18, 2014

Steps:

  1. Launch Brackets.
  2. New a file with dots in its name, for example: untitled-2......
  3. Observe the project tree

Result:
2 files are created, one named 'untitled-2' and another is 'untitled-2......'

Expected:
Only one file with name 'untitled-2' should be created as the Win OS behaves this way

ENV: Windows English OS
Build: 0.38.0-12173

Note:

  1. If rename an existing file with dots, dots wouldn't be added, which is correct.
  2. On MacOSX, file name with dots is acceptable by system and Brackets.

Snapshots:
Please refer to snapshots for details:
filenamewithdots_enu_winonly_38 12173

@Zhuyun Zhuyun added the IQE label Mar 18, 2014
@Zhuyun
Copy link
Author

Zhuyun commented Mar 18, 2014

Found this issue when regress #5468

@RaymondLim
Copy link
Contributor

This is the result of Windows OS automatically trimming all the dots from the filename if it does not have a valid character after the last dot. (You can see this by renaming a file that ends with multiple dots in Windows Explorer.) Then our new File Watcher triggers an external file rename in Brackets and causing two files in the side bar. Before the File Watcher landed in master we're showing a non-existing filename in Brackets until next session of Brackets.

@pthiess
Copy link
Contributor

pthiess commented Mar 24, 2014

@JeffryBooher

@JeffryBooher
Copy link
Contributor

Closing @Zhuyun let us know if you still see a problem.

@Zhuyun
Copy link
Author

Zhuyun commented Jun 12, 2014

Verified in latest build 41.13190, confirm fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants