You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
When copy/paste same named file, new folder is created above working dir, dangerous #674
+1. This is really annoying. It looks like the problem occurs when a directory name starts with a number.
In my case, I have 1.data/data.txt. When I copy data.txt and paste it into 1.data/, I expect 1.data/data0.txt to get created. Instead, 10.data/data.txt gets created in the parent that contains 1.data/. Thus, the behavior should be that it creates a new version of the file in the same directory.
@pydolan yes, so when directory has number in them, it can happen above working dir. Lucky for us it does not overwrite another files, but can for some people create problems when random directories/files are spawned inside other projects.
And yes, it looks like #649 should fix it. b6abd9c, maybe? I'm not actually sure which exact commit solves this particular problem, looks like there were a lot of things changed related to the correct placement of the incremented number for duplicate files.
Unfortunately it looks like Atom core is still using v0.205.0 of tree-view, so the bug isn't fixed there yet. It will be fixed once Atom upgrades to tree-view v0.207.0 or newer.
Activity
dolan-a commentedon Dec 15, 2015
+1. This is really annoying. It looks like the problem occurs when a directory name starts with a number.
In my case, I have
1.data/data.txt. When I copydata.txtand paste it into1.data/, I expect1.data/data0.txtto get created. Instead,10.data/data.txtgets created in the parent that contains1.data/. Thus, the behavior should be that it creates a new version of the file in the same directory.freed00m commentedon Dec 15, 2015
@pydolan yes, so when directory has number in them, it can happen above working dir. Lucky for us it does not overwrite another files, but can for some people create problems when random directories/files are spawned inside other projects.
dolan-a commentedon Dec 15, 2015
It looks like this may be related to #649.
Ajedi32 commentedon Jul 8, 2016
This problem manifests itself for me as an error:
And yes, it looks like #649 should fix it. b6abd9c, maybe? I'm not actually sure which exact commit solves this particular problem, looks like there were a lot of things changed related to the correct placement of the incremented number for duplicate files.
Unfortunately it looks like Atom core is still using v0.205.0 of tree-view, so the bug isn't fixed there yet. It will be fixed once Atom upgrades to tree-view v0.207.0 or newer.
Increment on the filename, not secondary extensions
winstliu commentedon Jul 8, 2016
Fixed by #649, should be in Atom 1.9.0. Thanks for the heads-up @Ajedi32!