LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Random question about the file hierarchy, specifically where trash is located (https://www.linuxquestions.org/questions/ubuntu-63/random-question-about-the-file-hierarchy-specifically-where-trash-is-located-656947/)

Tribulation 07-20-2008 02:12 AM

Random question about the file hierarchy, specifically where trash is located
 
I know that every directory starts with / because everything in the system is below root. That's why I type /before I go to my pictures or desktop or what have you. Trash has been bugging me though, it doesn't start out with /. It is trash:/// Why is that?

AceofSpades19 07-20-2008 02:33 AM

Because thats how kde accesses stuff in the file system. trash is actually ~/.local/share/Trash

Sjonnie48 07-20-2008 09:49 AM

If you use Konqueror click View > Show Hidden Files, which enables you to see directories that begin with ./

AdaHacker 07-20-2008 10:26 AM

Quote:

Originally Posted by Tribulation (Post 3220401)
It is trash:/// Why is that?

That's a URL for KIO, not a directory path. KIO is KDE's infrastructure for providing a uniform interface to resources of various types. Basically, there's a KIO slave that knows how to read and write things using each of the different protocols, so an individual KDE application just has to do its file access through KIO and it will automatically support all the protocols KIO understands, which includes local files, SSH, FTP, SMB, etc.

The trash:/ protocol is one of several KIO slaves that just provides a specialized view of the local file system. There are several others, such as applications:/, system:/, and media:/. The actual location of the trashed files is defined by the FreeDestkop.org trash specification, which, as AceofSpades19 said, puts the files in ~/.local/share/Trash by default.


All times are GMT -5. The time now is 02:24 PM.