Closed omernaveedxyz closed 2 years ago
I've added "fuse" to the list of "physical" file systems types.
Try install the latest version directly from the repository
$ pip uninistall trash-cli
$ pip install git+https://github.com/andreafrancia/trash-cli/
and let me know if it solves the problem.
Yes, the directory ~/Desktop/.Trash-1000
is now correctly sourced by the various trash-cli commands. Thank you for resolving this so quickly.
As for my second point, is there no way to store all of these trashed files into ~/.local/share/Trash
?
Have you tried the following?
trash-put --trash-dir=~/.local/share/Trash foo
trash-put --trash-dir=~/.local/share/Trash -v foo
trash-put: Volume of file: /home/omer/Desktop trash-put: Trash-dir: ~/.local/share/Trash from volume: /home/omer/Desktop trash-put: 'foo' trashed in ~/.local/share/Trash
tree -a ~/Desktop
. ├── ~ │ └── .local │ └── share │ └── Trash │ ├── files │ │ └── foo │ └── info │ └── foo.trashinfo 6 directories, 2 files
That is not the desired file structure. Trying:
trash-put --trash-dir=/home/omer/.local/share/Trash -v foo
trash-put: Volume of file: /home/omer/Desktop trash-put: Trash-dir: /home/omer/.local/share/Trash from volume: / trash-put: cannot trash regular empty file 'foo'
You're right! I think we can close this issue.
Describe the bug I am running NixOS on a Btrfs volume alongside the impermanence module (linked here). Currently this module is only applied to a single directory in my home folder. What this module does is that it bindfs mounts the directory from a separate Btrfs subvolume (i.e. /persistent) to the user's home directory (i.e. ~/Desktop in subvolume /). What this allows is for me to wipe unnecessary cache files and only persist necessary files between boot (I wipe the home partition between boots).
The issue I have with Trash-cli is that it does not seem to detect files that are trashed within these directories. Running
trash-put ~/Desktop/<file>
will create a~/Desktop/.Trash-1000
folder with the correct file information, buttrash-restore
,trash-list
, andtrash-empty
will not detect this folder regardless if I run the commands from within the~/Desktop
directory or/persistent/home/<user>/Desktop
where the original file contents are.trash-cli version trash-put 0.22.8.27
Operating system:
To Reproduce:
$ cd ~/Desktop
$ touch foo
$ trash-put foo
$ tree -a
$ trash-list
$ trash-list --trash-dir=.Trash-1000
$ trash-restore
$ trash-empty
Expected behavior These commands should recognize the
~/Desktop/Trash-1000
folder and give me the ability to restore/empty if I desire.As an aside, I would prefer if the files where trashed to
~/.local/share/Trash
but I believe that is a limitation of each directory being a separate bindfs mount, separate from the subvolume mounting the home directory.Output of
trash-list --debug-volumes