atom / tree-view

🌳 Explore and open project files in Atom
MIT License
561 stars 365 forks source link

Uncaught Error: ENOENT: no such file or directory, lstat '/ Inc' #1357

Closed kbartman closed 4 years ago

kbartman commented 4 years ago

Prerequisites

Description

Uncaught Error: ENOENT: no such file or directory, lstat '/ Inc' - comma in a folder no causes drag/drop of file to different folder to fail.

Steps to Reproduce

  1. Create a folder with a comma in the name. (I have a corporate "OneDrive" folder that I cannot rename which is named as: "OneDrive - Name of Company, Inc")
  2. Create a file within that folder.
  3. Create a subfolder and a file within it.
  4. Drag the file from the subfolder to the parent folder.
  5. Voila - Get Uncaught Error: ENONET...

Expected behavior:

File is moved to given folder

Actual behavior:

Receive the Error dialog: Uncaught Error: ENOENT: no such file or directory, lstat '/ Inc'

Reproduces how often:

100% of the time the error occurs.

Versions

Atom : 1.50.0 Electron: 5.0.13 Chrome : 73.0.3683.121 Node : 12.0.0

Additional Information

Atom is a fantastic tool. I use it for most of my development projects. Seems that Atom should be able to handle modern filenames as it does so well with so many other things.

sadick254 commented 4 years ago

@kbartman Thank you for the reproduction details. I have been able to reproduce this on

apm  2.5.2
npm  6.14.8
node 12.4.0 x64
atom 1.51.0
python 2.7.16
git 2.24.3
OS: macOS Catalina 10.15.6