fman icon indicating copy to clipboard operation
fman copied to clipboard

Deletion of multiple files is slow

Open RiederAlex opened this issue 7 years ago • 6 comments

I regulary need to delete lots of files inside a folder without actually deleting the folder. This operation is much slower for both permanent deletion & move to recycle bin as compared to OS native functionality.

For example, select all files in a folder with 60 empty .txt files and delete them. Using fman, this takes around 2.5 seconds, using native windows explorer it happens instantly.

My best guess is that this happens because it re-renders between each individual file deletion.

RiederAlex avatar Jan 20 '19 11:01 RiederAlex

Looking at #616 it seems that fman deletes each file individually.

joshas avatar Jan 27 '19 08:01 joshas

yep - this is quite annoying behavior. Deleting or moving files should be way faster.

jardous avatar Feb 28 '19 09:02 jardous

+1

fman is becoming more useful all the time, but this is a major showstopper for me. I am just now waiting for the removal of a few thousand files selected with a regex (there is a nice plugin for that). I know I can do something like find -delete -regex "./\d-0-.*" etc but this always confuses me and I am afraid to mess up badly when I do such things. Therefore I love to have fman's visual feedback to guide me.

Quickly selecting, moving, deleting, and renaming long lists of files is hands down the top use case for me in fman. But currently it is so slow that I often turn to the scary find -regex ... solution instead.

rasmuse avatar May 08 '19 14:05 rasmuse

If your on a macOS system, add my plugin https://github.com/raguay/FlexibleTrash. Then, quit finder and fman will directly delete the files and not move them to trash. The slowdown is two fold, updating the UI and moving files to Finder's trash folder. Since I always kill finder on my system using a Keyboard Maestro workflow, fman will use the Flexible Trash to immediately remove the files is much faster.

Beware: removing files this way is a no return route. The files are gone!

On Wed, May 8, 2019 at 9:57 PM Rasmus Einarsson [email protected] wrote:

+1

fman is becoming more useful all the time, but this is a major showstopper for me. I am just now waiting for the removal of a few thousand files selected with a regex (there is a nice plugin for that). I know I can do something like find -delete -regex "./\d-0-.*" etc but this always confuses me and I am afraid to mess up badly when I do such things. Therefore I love to have fman's visual feedback to guide me.

Quickly selecting, moving, deleting, and renaming long lists of files is hands down the top use case for me in fman. But currently it is so slow that I often turn to the scary find -regex ... solution instead.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fman-users/fman/issues/615#issuecomment-490520630, or mute the thread https://github.com/notifications/unsubscribe-auth/AAS7JR7Q4YIVMSRRBYUKWZ3PULS5FANCNFSM4GRGK5RA .

raguay avatar May 09 '19 02:05 raguay

Here's a video showing the deletion speed:

https://enigmeta.s3.amazonaws.com/github-issues/2019-10-21-fman-slow-deletion.mp4

To compare, in the Finder it takes about 1 second to delete 1500 files. In the Terminal it's near instant.

fdb avatar Oct 21 '19 16:10 fdb

So what if fman update the UI not for each file but say, for each 0.5 seconds?

StevenLu2004 avatar Apr 22 '21 00:04 StevenLu2004