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.
"The following file couldn't be moved to trash (is gvfs-trash installed?)" when attempting to delete empty nested folder with "Collapse direc #799
with "Collapse directories" enabled, deleting an empty nested directory fails
ubuntu 14.04, atom 1.6.2
update: the first time attempting to delete /1/2/3, directory 3 is deleted but the tree is not updated. if the delete is attempted again the message above is shown. if the parent directory is collapsed and expanded again, it now shows /1/2. this process can be repeated until all directories are gone.
Well, the notification was added in a recent release. Before failing to delete a file would fail silently without an error message. @mnzt, @azat-io, @piecedigital: are you all trying to delete a nested directory with "collapse directories" enabled?
Ok. As this issue is talking specifically about deleting nested directories while "collapse empty directories" is enabled, can you please create a different issue? Thanks!
gvfs-trash is installed. It would be helpful if the error message displayed in Atom instead said the trash folder is missing. In my case I'm working in /var/www/... Fixed by following @TipiT's instructions.
For those who arrive here by Google or another search engine, please open a new issue. This issue was specifically for a bug related to deleting squashed directories, not a general catch-all for the notification.
Hey guys, just giving my 2 cents here: I was able to delete files when opened atom via terminal.
Step 1) sudo atom (from terminal)
Step 2) Click File on top left and go to Open Folder...
Step 3) Open the directory/folder you would like and then you can see the files you want to delete and the deletion should work!
@tuf22191 While this is actually already mentioned somewhere here if I'm not mistaken, it should also be noted that running Atom with sudo is not a clever idea, since you can also cause a lot more harm to your system than simply delete what you planned to. If you feel comfortable with it, feel free to continue using it, but I advise against it.
@jeyj0 thanks for the advice (a little new to Linux)! You make a good point about the destructiveness inherent with using the sudo command with atom especially when deleting things
Activity
tobbbles commentedon Apr 28, 2016
Same error issue on arch linux:
azat-io commentedon May 1, 2016
Same error 😞
piecedigital commentedon May 1, 2016
So, like... is this a recent issue? This wasn't happening a few days ago. It worked right out the box, unlike the Windows version.
winstliu commentedon May 1, 2016
Well, the notification was added in a recent release. Before failing to delete a file would fail silently without an error message.
@mnzt, @azat-io, @piecedigital: are you all trying to delete a nested directory with "collapse directories" enabled?
piecedigital commentedon May 1, 2016
@50Wliu I'm trying to delete several files in one directory, not even the directory itself.
tobbbles commentedon May 1, 2016
@50Wliu same story as @piecedigital. Even doing the following results in the error.
followed by trying to delete
some.filepiecedigital commentedon May 1, 2016
Okay... I fixed my issue simply by changing the owner to myself.
Not sure how it changed in the first place...
tobbbles commentedon May 1, 2016
I still cannot delete any file, even if owned by the user who launched atom
winstliu commentedon May 1, 2016
Ok. As this issue is talking specifically about deleting nested directories while "collapse empty directories" is enabled, can you please create a different issue? Thanks!
adnanzulkarnain commentedon Jun 12, 2016
Same error
gdlx commentedon Jun 16, 2016
Same error on Windows and Atom 1.8
(without the
gvfs-trashreference)TreyJenkins commentedon Jun 20, 2016
Same error on 16.04
12 remaining items
jeyj0 commentedon Sep 9, 2016
@TipiT's fix works for me, a solution by atom would be great though.
macu commentedon Oct 13, 2016
gvfs-trashis installed. It would be helpful if the error message displayed in Atom instead said the trash folder is missing. In my case I'm working in/var/www/...Fixed by following @TipiT's instructions.virtuald commentedon Oct 16, 2016
When I run gvfs-trash manually, I get the following error on stdout:
Perhaps atom should display that error?
FRizZL commentedon Oct 31, 2016
The correct CMD (from @TipiT) is and worked perfectly!!:
sudo mkdir -p /.Trash-1000/{expunged,files,info}; sudo chown -R $USER:$USER /.Trash-1000/elderalves commentedon Dec 26, 2016
My problem with
gvfs-trashwas about permission issues in Trash folder.These steps on askubuntu helped me to solve my problem:
miguelcg commentedon Dec 29, 2016
Pull request #1008 opened for this issue, feel free to review it! :)
winstliu commentedon Dec 31, 2016
Fixed by #1008.
For those who arrive here by Google or another search engine, please open a new issue. This issue was specifically for a bug related to deleting squashed directories, not a general catch-all for the notification.
brownman commentedon Jan 24, 2017
try:
touch testFile
gvfs-trash testFile
Error trashing file: Unable to find or create trash directory
problem:
ls -ld ~/.local/share/Trash/ #results: drwx------ 4 root root 4
fix:
sudo chown -R $USER:$USER ~/.local/share/Trash/
sudo chmod -R 700 ~/.local/share/Trash/
gvfs-trash testFile
ref:
http://askubuntu.com/questions/636484/error-deleting-file-unable-to-find-or-create-wastebasket-directory-ubuntu-15-0
tuf22191 commentedon Jan 27, 2017
Hey guys, just giving my 2 cents here: I was able to delete files when opened atom via terminal.
Step 1) sudo atom (from terminal)
Step 2) Click File on top left and go to Open Folder...
Step 3) Open the directory/folder you would like and then you can see the files you want to delete and the deletion should work!
jeyj0 commentedon Jan 27, 2017
@tuf22191 While this is actually already mentioned somewhere here if I'm not mistaken, it should also be noted that running Atom with sudo is not a clever idea, since you can also cause a lot more harm to your system than simply delete what you planned to. If you feel comfortable with it, feel free to continue using it, but I advise against it.
tuf22191 commentedon Jan 27, 2017
@jeyj0 thanks for the advice (a little new to Linux)! You make a good point about the destructiveness inherent with using the sudo command with atom especially when deleting things
mapasteper commentedon Feb 2, 2017
I got the same Issue and I found the solution in this blog
http://dev-notes.eu/2016/07/delete-files-in-atom-under-ubuntu-16-04/
winstliu commentedon Feb 3, 2017
Because it appears that people are not reading this issue fully, I am locking it.
Common solutions for this error
gvfs-trashis installed.Trash-1000folder exists - if it doesn't, try these stepsIf after those steps you are still unable to delete a file, please open a new issue and fill out the issue template. Thanks!