-
Notifications
You must be signed in to change notification settings - Fork 178
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
trash-put --home-fallback (was: trash-put cannot trash regular empty file) #247
Comments
Please try these commands and send me the output:
|
Thanks for your response, @andreafrancia. Here are the output of the commands you asked me to run -
Looking at the output of the last command, it seems it is trying to write to Once again, thanks for all the help! Naman |
I cannot understand why it does not use directly the home trash dir ( Please, try to use this command:
|
Hey @andreafrancia, I think this is happening because the file |
Please try this, please:
Try also to trash a file named bb.txt, please |
Hey @andreafrancia, I did not have any file named If I create the file Thanks, |
I think we're almost there, try this:
|
Hey @andreafrancia , Just to clarify again, I only access to a directory in Thanks, |
ok, I was wrong about the path of aa.txt.
|
Can you also try the folllowings?
|
Hey @andreafrancia , This is working as expected but I don't think it solves the Thanks, |
Hi @bnaman50, Please try this:
Please redact any output line with sensible information. Thank you |
Hey @andreafrancia, It shows that there is no file named And this is expected since when we moved the file over here Thanks, |
Hi @bnaman50. I've added some other debug messages to trash-put. You need to uninstall the current version of trash-cli and install the latest version for using them:
The try to trash aa.txt using the debug option: -vv (with two "v"):
Some other ideas: The |
Hey @andreafrancia , Sorry, I got busy and could not try out the solution. Here is the update - I reinstalled it as you suggested. I also tried the command and here is the log - Seems like it is expecting the trash folder to be in Thanks, |
There is a problem when it tries to trash it in the first trash-dir (~/.local/share/Trash), it doesn't succeed but it does not show any error message. I'm trying to refactor the make it clearer and find where is the place where it may fail and it does not show the error. Please the next time use copy and paste of the terminal text instead if pasting an image. For me would be easier copy part of the text. |
Thanks a lot for your continuous help @andreafrancia. And yes, I'll write the errors in the text form rather than image from now onwards. Thanks, |
Hi, When you trash a file from /data trash-cli considers three trash-dir candidates:
The you want to trash is /data/namam/bb.txt in volume /data When trash-put starts it first take in consideration the /home/naman/.local/share/Trash dir but it does not use it because the trash dir and the file are in different volumes. I've updated the trash-put los in order to be more clear in cases like your. |
Great. Thanks for the detailed explanation, @andreafrancia. I'll request the admin to add the top-level trash dir and mentioned in the Readme. However, best option would be to have trash directory at user level even for other volumes such as Thanks, |
I am experiencing a similar issue with latest git version of trash-cli:
|
I've encountered similar issue. I |
@bnaman50 I'll leave open this issue until we managed to implement properly --home-fallback |
Hey @andreafrancia , I am facing the similar issue.
When I use
trash-put
in my home directory, it works perfectly as you can seeHowever, we have another disk
\data
andtrash-put
command does not work there.I have created a
.Trash-$UID
dir and provided the permissions as mentioned in the documentationchmod a+rw .Trash-$UID` chmod +t .Trash-$UID
I am not sure what to do. Could you please help me out?
Thanks,
Naman
Originally posted by @bnaman50 in #9 (comment)
The text was updated successfully, but these errors were encountered: