Skip to content
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

Sorry! Still "trash-put: cannot trash regular file" #312

Open
Taskii-Lei opened this issue Sep 5, 2023 · 2 comments
Open

Sorry! Still "trash-put: cannot trash regular file" #312

Taskii-Lei opened this issue Sep 5, 2023 · 2 comments

Comments

@Taskii-Lei
Copy link

Describe the bug
Sorry! I have done these below:

mkdir /lustre/S/huanglei/.Trash-6155
chmod a+w /lustre/S/huanglei/.Trash-6155
chmod +t /lustre/S/huanglei/.Trash-6155

But when I wanna trash the /lustre/S/huanglei/test.py , it still raises the error:

trash-put: cannot trash regular file '/lustre/S/huanglei/test.py'

I'm so confused... Thank you!!

trash-cli version
0.23.2.13.2

Are you using the latest version of trash-cli?
Yes

Have you tried if the bug is present in the latest version of trash-cli?
Yes

Please, install the latest version of trash-cli and try again before submitting the bug

First of all you need to uninstall any previous version of trash-cli::

$ [sudo] pip uninstall trash-cli # remove the previous version (with pip)
$ [sudo] apt-get remove trash-cli # remove the previous version (with apt)
$ [sudo] yum uninstall trash-cli # remove the previous version (with yum)
$ ... # refer to the package manager of your distribution

Then install the latest version from git::

$ pip install pip install git+https://github.com/andreafrancia/trash-cli

Have done that? Then continue with the bug report.

Operating system:

  • OS: Ubuntu

To Reproduce
Copy and paste the commands (and their output) to execute in order to reproduce
the behavior:
$ mkdir /lustre/S/huanglei/.Trash-6155
$ chmod a+w /lustre/S/huanglei/.Trash-6155
$ chmod +t /lustre/S/huanglei/.Trash-6155
$ trash-put /lustre/S/huanglei/test.py

ls: trash-put: cannot trash regular file '/lustre/S/huanglei/test.py'
$ trash-list
2023-09-01 11:57:35 /home/S/huanglei/draft.txt
2023-09-05 11:07:26 /home/S/huanglei/index.html

Expected behavior
A clear and concise description of what you expected to happen.

Volumes detail
I have done the echo $UID. It's 6155.

@andreafrancia
Copy link
Owner

Thank you, I'm working on trash-put output to make it more clear because it fails.

@andreafrancia
Copy link
Owner

Hi @Taskii-Lei, I've prepared a new release (0.23.11.10) of trash-cli where I added more clearer error messages for trash-put.

Can you try it?

$ pip uninstall trash-cli
$ pip install trash-cli
$ trash-put --version

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants