v1.5.3 Unable to delete some image files in thumbnail view.

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

Moderators: XnTriq, helmut, xnview, Dreamer

FKCapitalism2
Posts: 270
Joined: Sun Apr 23, 2023 5:14 am

v1.5.3 Unable to delete some image files in thumbnail view.

Post by FKCapitalism2 »

in v1.5.3 when in thumbnail view i am unable to delete some image files, i use Shift+Delete on keyboard, then see delete dialog, then select yes and file does not delete. When i use windows explorer it deletes okay.

File i have problems with is here https://www.upload.ee/files/15627677/Ca ... w.zip.html
User avatar
xnview
Author of XnView
Posts: 44490
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by xnview »

if you move this file in another folder, same problem?
Pierre.
FKCapitalism2
Posts: 270
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by FKCapitalism2 »

xnview wrote: Fri Sep 01, 2023 8:08 am if you move this file in another folder, same problem?
Yes i tried to create new sub folder and move there and it still does not delete.

Even i create sub folder move file there and try to delete folder - it does not delete.

I noticed file has attribute "Read Only" set, perhaps this is what causing problem.
User avatar
xnview
Author of XnView
Posts: 44490
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by xnview »

FKCapitalism2 wrote: Fri Sep 01, 2023 12:48 pm I noticed file has attribute "Read Only" set, perhaps this is what causing problem.
it's the problem...
Pierre.
FKCapitalism2
Posts: 270
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by FKCapitalism2 »

xnview wrote: Fri Sep 01, 2023 2:12 pm
FKCapitalism2 wrote: Fri Sep 01, 2023 12:48 pm I noticed file has attribute "Read Only" set, perhaps this is what causing problem.
it's the problem...
Not a problem for windows file explorer. I never even pay attention to read only tag as its really useless now days and ignored by anything but few select command line utilities.

Would be nice if XnView MP warns about read only attribute or ask "if you really sure you want to delete read-only file", not doing anything when you press yes, delete is a bit misleading.
FKCapitalism2
Posts: 270
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by FKCapitalism2 »

xnview wrote: Fri Sep 01, 2023 2:12 pm
FKCapitalism2 wrote: Fri Sep 01, 2023 12:48 pm I noticed file has attribute "Read Only" set, perhaps this is what causing problem.
it's the problem...
Actually its a bug, XnView MP deletes folder that has read only attribute no problem if it has images inside of it. But if images are not inside a folder then it sometimes can't delete folder with read only attribute from thumbnail view. As soon as i copy image inside folder XnView MP is able to delete the folder.
User avatar
xnview
Author of XnView
Posts: 44490
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by xnview »

i've tried to delete:
- folder with no files with 'read only'
- folder with 'read only' with 1 file
- folder with 'read only' with 1 file with 'read only'
and it works each time
Pierre.
FKCapitalism2
Posts: 270
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by FKCapitalism2 »

xnview wrote: Wed Dec 06, 2023 7:27 am i've tried to delete:
- folder with no files with 'read only'
- folder with 'read only' with 1 file
- folder with 'read only' with 1 file with 'read only'
and it works each time
This is why i mentions it happen "sometimes", actually after i had this bug happen to me one i was not able to reproduce it again.

Edit: To reproduce the problem, need to create folder set read-only attribute place few images inside, then close the XnView MP

Next you navigate to that folder using Windows Explorer and double click the image to open XnView MP then inside XnViewMP switch to thumbnail view and navigate out of the folder. Then try to delete folder with XnViewMP and it will only delete images inside folder, (you can generate thumbnails again for that folder to see its empty now) but folder stay in place. Even if you close folder inside Windows Explorer will not be able to delete the folder from within XnViewMP.
User avatar
xnview
Author of XnView
Posts: 44490
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by xnview »

FKCapitalism2 wrote: Wed Dec 06, 2023 9:49 am Edit: To reproduce the problem, need to create folder set read-only attribute place few images inside, then close the XnView MP

Next you navigate to that folder using Windows Explorer and double click the image to open XnView MP then inside XnViewMP switch to thumbnail view and navigate out of the folder. Then try to delete folder with XnViewMP and it will only delete images inside folder, (you can generate thumbnails again for that folder to see its empty now) but folder stay in place. Even if you close folder inside Windows Explorer will not be able to delete the folder from within XnViewMP.
you can reproduce each time the problem? i can't...
Pierre.
FKCapitalism2
Posts: 270
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by FKCapitalism2 »

xnview wrote: Wed Dec 13, 2023 2:25 pm
FKCapitalism2 wrote: Wed Dec 06, 2023 9:49 am Edit: To reproduce the problem, need to create folder set read-only attribute place few images inside, then close the XnView MP

Next you navigate to that folder using Windows Explorer and double click the image to open XnView MP then inside XnViewMP switch to thumbnail view and navigate out of the folder. Then try to delete folder with XnViewMP and it will only delete images inside folder, (you can generate thumbnails again for that folder to see its empty now) but folder stay in place. Even if you close folder inside Windows Explorer will not be able to delete the folder from within XnViewMP.
you can reproduce each time the problem? i can't...
Yes works every time i try. Perhaps you need my xnview.ini?
User avatar
xnview
Author of XnView
Posts: 44490
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by xnview »

FKCapitalism2 wrote: Fri Dec 15, 2023 3:10 pm Yes works every time i try. Perhaps you need my xnview.ini?
Crazy, i can't reproduce
Pierre.
FKCapitalism2
Posts: 270
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by FKCapitalism2 »

xnview wrote: Thu Dec 21, 2023 7:47 am
FKCapitalism2 wrote: Fri Dec 15, 2023 3:10 pm Yes works every time i try. Perhaps you need my xnview.ini?
Crazy, i can't reproduce
Bug only appears when i do Ctrl+Del on keyboard, when i use Right Click on folder and select Delete it works properly.

Still broken in v1.7.1, video: https://www.upload.ee/files/16644261/Sc ... 0.mp4.html
FKCapitalism2
Posts: 270
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by FKCapitalism2 »

xnview wrote: Thu Dec 21, 2023 7:47 am
FKCapitalism2 wrote: Fri Dec 15, 2023 3:10 pm Yes works every time i try. Perhaps you need my xnview.ini?
Crazy, i can't reproduce
You able to reproduce now?
User avatar
xnview
Author of XnView
Posts: 44490
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by xnview »

FKCapitalism2 wrote: Sat May 18, 2024 7:21 am Bug only appears when i do Ctrl+Del on keyboard, when i use Right Click on folder and select Delete it works properly.
Ctrl+Del??? Del or Shift+Del works
Pierre.
FKCapitalism2
Posts: 270
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.5.3 Unable to delete some image files in thumbnail view.

Post by FKCapitalism2 »

xnview wrote: Tue Jun 04, 2024 1:11 pm
FKCapitalism2 wrote: Sat May 18, 2024 7:21 am Bug only appears when i do Ctrl+Del on keyboard, when i use Right Click on folder and select Delete it works properly.
Ctrl+Del??? Del or Shift+Del works
Shift+Delete can't delete folder if XnViewMP started from within that folder,

open folder with images "Test" in Windows Explorer double click image it opens XnViewMP interface navigate inside XnViewMP one folder up and try to delete folder "Test" using Shift+Del on keyboard, this does not work only deletes files inside folder, folder stay in place.