New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rmw is unable to use the system trash folder on a Mac #213

Open
andy5995 opened this Issue Dec 8, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@andy5995
Copy link
Member

andy5995 commented Dec 8, 2018

I may need to do some work to have rmw be able to access the system (desktop) trash on a Mac. I confess I never gave it any thought before. People have told me it worked it on a Mac, but I'm not sure any Mac user ever tried it with their system trash.

@msiverts

In the rmw chat room, I've asked @sexybiggetje about using the system trash on a Mac. He's going to do some checking.

I found a little preliminary info by searching... Apparently your system trash is stored in ~/.Trash.

rmw creates ".trashinfo" files though, the same method the desktop trash on Linux uses. Is the layout of your Trash directory something like this?

~/.Trash
~/.Trash/files/ (where the files are stored)
~/.Trash/info/ (where the corresponding .trashinfo files are stored)

The format of a .trashinfo file looks like this:

[Trash Info]
Path=/home/andy/Downloads/bash-4.4.tar.gz
DeletionDate=2018-11-15T00:06:58

If the structure of your ~/.Trash doesn't match with the above description, you're still safe to use rmw, but don't add your ~/.Trash folder to the config file. You'll notice the default directory specified in the config file is ~/.trash.rmw.

As for the trash on different filesystems or removable devices, that's another matter. Right now, rmw can use any folder on any filesystem once it's created, but the goal is having it more "automatic" (see also #134).

@andy5995 andy5995 added the enhancement label Dec 8, 2018

@sexybiggetje

This comment has been minimized.

Copy link
Member

sexybiggetje commented Dec 8, 2018

I'm thinking that if there is any metadata at all it's attached to the files. Subfolders are trashed on emptying as well.

`kenpachi:andy martijn$ tree ~/.Trash/
/Users/martijn/.Trash/
└── test.txt

0 directories, 1 file`

@andy5995 andy5995 changed the title system trash folder on a Mac rmw is unable to use the system trash folder on a Mac Dec 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment