URGENT: where are my trashed files (after 'gio trash' command)?

I was trying to learn a bit about the “gio trash” command and here is a summarized replay of the issue:

 mark@mark-pc:~/Scripts$ gio trash --list
gio: trash:: Operation not supported
 mark@mark-pc:~/Scripts$ gio trash --list .

So now my Scripts directory has been trashed (I hope)
Since gio trash --list does not work, I’ve looked in ~/.local/share/Trash/files but the files are not there!
The files do show up in “trash-list”

mark@mark-pc:~$ gio trash --restore /home/mark/Scripts/equalizeaudio_fix
gio: file:///home/mark/Scripts/equalizeaudio_fix: Location given doesn't start with trash:///
mark@mark-pc:~$ gio trash --restore trash:///home/mark/Scripts/equalizeaudio_fix
gio: trash:///home/mark/Scripts/equalizeaudio_fix: Operation not supported

How do I restore these files? Where are they?

Works fine for me. Please specify distro and Gio version.

$ gio --version
2.84.3

$ gio trash --list
trash:///test	/home/sid/test

$ ls -1 /home/sid/test
ls: cannot access '/home/sid/test': No such file or directory

$ gio trash --restore trash:///test

$ ls -1 /home/sid/test
file1
file2
1 Like

The issue was that I did it in VSCode terminal. The files were in some dir other than the standard dir and the restore and list function did not work.

I don’t know if it’s gio or vscode that has this “feature” but vscode and gio combined have a bug.

Works fine for me in VsCode terminal. Again, please specify distro and Gio version.


Issue not present in cursor. Not gio bug

Closing issue

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.