Interests: Programming Languages, Computer Security, Formal Methods, Software Engineering
$ ln -s foo bar $ garbage put bar ERROR - Path "bar" doesn't exist. $ ls bar bar
When I get an error like
ERROR - Failed to touch trash directory, it'd be nice to see the chain of causes, so I know e.g. that the issue is a dangling symlink vs a permissions issue
/ and /home are two separate file systems. This causes deletion from /tmp to fail, since a trash can't be made in /.
restore thinks it's ~/.local/share/Trash, put thinks it's ./.Trash-$UID
nathan@t60 ~ $ mkdir foo && mkdir foo/bar && touch foo/bar/baz && chmod 555 foo/bar nathan@t60 ~ $ garbage put foo nathan@t60 ~ $ garbage list 2022-01-23 18:56:36 -06:00 now /home/nathan/foo nathan@t60 ~ $ garbage empty Error: IO error: Permission denied (os error 13) nathan@t60 ~ $ garbage list nathan@t60 ~ $ ls -l ~/.local/share/Trash/ drwxr-xr-x - nathan 23 Jan 18:56 files drwxr-xr-x - nathan 23 Jan 18:56 info nathan@t60 ~ $ ls -l ~/.local/share/Trash/files/ drwxr-xr-x - nathan 23 Jan 18:55 1642985738618.foo
possibly results from having write-protected files in dirs in the trash dir; possibly info files are wiped out?
impl Fromio::Error for Error considered harmful
$ mkdir ~/foo $ cd ~/foo $ mkdir bar $ ln -s bar asdf $ garbage -vvvvv put asdf/ INFO - Checking if "/home/nathan/foo/asdf" is . or .. TRACE - curr = "/home/nathan/foo" TRACE - parent = Some("/home/nathan") INFO - Picking strategy MoveTo because target "asdf/" was on the home mount. IO error: Not a directory (os error 20) $ garbage --version garbage 0.3.2-78fcdec $ rmdir asdf/ rmdir: failed to remove 'asdf/': Symbolic link not followed $ \rm asdf/ rm: cannot remove 'asdf/': Is a directory
/homeare two separate file systems. This causes deletion from
/tmpto fail, since a trash can't be made in