Osmose / advanced-open-file

Open files and folders in Atom easily.
https://atom.io/packages/advanced-open-file
Other
118 stars 20 forks source link

Cannot create directory with same name as an existing file #100

Closed eboracus closed 8 years ago

eboracus commented 8 years ago

Edit: Ah, noticed this is something not allowed more generally, not something from AOF... nevermind :)

This is admittedly very minor as you'd mostly expect any files to have extensions in their names cutting this conflict out.

If I have a folder with a file called "Example" (note no file .extension) then if I try to create a new directory in the same place with that same name "Example/" or a file within that directory with the 'Create directories' option on eg. "Example/ExampleFile.txt" then I see an error...

'Could not create directory' Error: EEXIST: file already exists, mkdir '.../Example'

I don't think AOF should try to stop this from happening (however uncommon)