trash-cli
trash-cli copied to clipboard
trash remove non existing files on a mounted windows share, trash process hangs
Hi, I noticed something: When using trash command on a linux local partition in some directory:
trash non existent file extensions:
like: trash *.obj
I get: trash: cannot trash non existent `*.obj'
But doing this on a mounted share (samba) used cifs mount command for a windows share.
If even one file exists everything is ok if I do try to trashing non existing files
like: trash *.obj
this hangs - I have to do a keyboard interrupt
^CTraceback (most recent call last):
File "/opt/anaconda2.3.0/bin/trash", line 4, in
File "build/bdist.linux-x86_64/egg/trashcli/cmds.py", line 10, in put File "build/bdist.linux-x86_64/egg/trashcli/trash.py", line 548, in run File "build/bdist.linux-x86_64/egg/trashcli/trash.py", line 557, in trash_all File "build/bdist.linux-x86_64/egg/trashcli/trash.py", line 560, in trash File "build/bdist.linux-x86_64/egg/trashcli/trash.py", line 324, in trash File "build/bdist.linux-x86_64/egg/trashcli/trash.py", line 71, in trash File "build/bdist.linux-x86_64/egg/trashcli/trash.py", line 191, in persist_trash_info KeyboardInterrupt
I replicated this issue on two different environments with permanent mounts. Same thing every time. Also tried it with versions trash 0.12.9.14 and 0.12.7 on Ubuntu1404 x64 Best