Include "trash folder" in API #25
Labels
A-docs
Area: affects documentation
C-proposal
Category: a proposal for something we might want to do, or maybe not; details still being worked out
C-question
Category: Not a bug, but someone asking for support
postponed
This is a migration of an issue in the old repository.
It would be useful to include a function which gets the path of a user "trash" folder. The problem on the old repository, to summarize, was how Windows didn't have a normal path to the recycle bin.
This is, as far as I can tell, not exactly right: It looks like Windows 7's recycle bin is stored in a hidden folder at "C:\$Recycle.Bin". This appears to be true in Windows 10 as well
Also potentially relevant, Windows appears to have subdirectories of "C:\$Recycle.Bin" for each user's SID, depending on who deleted a file.
So, just to summarize what could work, trash could return:
"$XDG_DATA_DIR/Trash" for Linux (on only some distros? more research is needed)
"$HOME/.Trash" for MacOS
and probably "C:\$Recycle.Bin" for Windows (or "C:\$Recycle.Bin\%SID%" where %SID% is the current user's SID)
The text was updated successfully, but these errors were encountered: