Deletes whole folder when sharp (#) in path or file name

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
KoTRpa
Posts: 2
Joined: Fri Apr 24, 2015 3:17 pm

Deletes whole folder when sharp (#) in path or file name

Post by KoTRpa »

When i try to delete file with # in name (or even in path to that file) XnViewMP moves whole folder to trash. Doesn't matter if option "use recycle bin" enabled or not. My OS is Ubuntu 14.04 x64. XnViewMP Version 0.72 x64 (Dec 19 2014)
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Deletes whole folder when sharp (#) in path or file name

Post by xnview »

You delete the file in browser?
Pierre.
KoTRpa
Posts: 2
Joined: Fri Apr 24, 2015 3:17 pm

Re: Deletes whole folder when sharp (#) in path or file name

Post by KoTRpa »

Yes, in browser. But same happens even in full screen mode.
canislupus
Posts: 4
Joined: Sat Jul 28, 2012 10:09 pm

Re: Deletes whole folder when sharp (#) in path or file name

Post by canislupus »

I can confirm this bug. I just didn’t know until now that this was because of the sharp. Same config as KoTRpa. Had this error also already in previous version. Thanks for solving.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Deletes whole folder when sharp (#) in path or file name

Post by xnview »

i can't reproduce, which distribution? Do you have gvfs-trash on your system?
Pierre.
canislupus
Posts: 4
Joined: Sat Jul 28, 2012 10:09 pm

Re: Deletes whole folder when sharp (#) in path or file name

Post by canislupus »

xnview wrote:i can't reproduce, which distribution? Do you have gvfs-trash on your system?
Ubuntu 14.04, using gvfs-trash, XnViewMP 0.72 x64

I just reproduced it like following:
1.) Create Folder Test/#Test2 with picture squirrel.jpg
2.) Open with XnView, than delete from there this picture.
This deletes whole folder Test into bin.

I also tried with the terminal command

Code: Select all

gvfs-trash Test/#Test2/squirrel.jpg
This works as expected and deletes just the file squirrel.jpg.
Post Reply