czkawka icon indicating copy to clipboard operation
czkawka copied to clipboard

When there are special folders in the scan target, it may cause the duplicate file scan to become stuck.

Open codercplus opened this issue 1 year ago • 1 comments

Desktop (please complete the following information):

  • Czkawka version : 6.1.0 GUI
  • OS version : Windows 11

Bug Description If the target path for scanning contains a special folder of the following type: its size is 0, and when opened by double-clicking in Windows, it displays the message "File or directory is corrupted and unreadable" - of course, we do not know in advance that such a special folder exists on the disk because its attributes are hidden by default.

So, when we click "Start Scan" in Czkawka, the program becomes unresponsive and freezes. The interface status in Czkawka is as follows.

Snipaste_2023-10-18_17-03-08

In Windows Explorer, the properties of this folder are as follows. Snipaste_2023-10-18_17-03-46

When double-clicking this special folder, the prompt message is as follows. Snipaste_2023-10-18_17-04-01

...

codercplus avatar Oct 18 '23 09:10 codercplus

Can you run windows_czkawka_gui_console.zip from https://github.com/qarmin/czkawka/releases/tag/6.1.0 and paste here what is printed into console(crashes etc.)? RUST_LOG=debug ./czkawka_gui.exe

Operations on disk are done only via standard windows functions, so I don't know which part of code not handled properly this situation.

qarmin avatar Oct 23 '23 19:10 qarmin