Page 1 of 4

Delete which skips locked files

Posted: 31 Aug 2006 09:53
by ugus
A nice feature would be a kind of Delete or Nuke which
skipped locked files.

For example if I want to clean up in my temp folder, I just want to skip the locked files.

/Ulrik

Re: Delete which skips locked files

Posted: 31 Aug 2006 13:01
by admin
ugus wrote:A nice feature would be a kind of Delete or Nuke which
skipped locked files.
Sounds cool, remind me in 2 weeks.

Posted: 15 Sep 2006 17:04
by ugus
admin wrote:Sounds cool, remind me in 2 weeks.
Something related to this could be a kind of "safe-copy" e.g.
a copy procedure which doesn't stop like Windows if either the file is locked or in corrupted.

Maybe some kind of logfile after the operation which indicate on which files you had an error.

Another cool feature to add; delete files on reboot.
This could be nice to apply on locked in-use files.

See also

http://www.xyplorer.com/xyfc/viewtopic.php?t=1004

/Ulrik

Posted: 15 Sep 2006 17:21
by j_c_hallgren
ugus wrote:Another cool feature to add; delete files on reboot.
This could be nice to apply on locked in-use files.
I may be totally wrong, but it's my understanding that this is done via entries placed in the Registry...which would seem to be incompatible with XY operational principles..

Posted: 15 Sep 2006 17:46
by ugus
OK if it needs write to registry (I'm think youre right) - then its OK to skip that feature... :?

But adding support in XY for file copy/delete issues with locked/corrupted files....

...could be a really cool feature! 8)

Cheers Ulrik

Posted: 16 Sep 2006 08:59
by admin
ugus wrote:
admin wrote:Sounds cool, remind me in 2 weeks.
http://www.xyplorer.com/xyfc/viewtopic.php?t=1004
So, another one took the job of reminding me, Ulrik, and opened the same idea in yet another thread. I see it's urgent. Especially because I would really like to have that myself! :wink:

But, as jacky said in the other thread: it means some homework for me...

Re: Delete which skips locked files

Posted: 19 Sep 2006 11:04
by admin
ugus wrote:A nice feature would be a kind of Delete or Nuke which
skipped locked files.

Code: Select all

+++ Menu File: added command "Delete (Skip Locked)"...
:D Test it and tell me what you think.

Re: Delete which skips locked files

Posted: 19 Sep 2006 11:21
by ugus
admin wrote:
ugus wrote:A nice feature would be a kind of Delete or Nuke which
skipped locked files.

Code: Select all

+++ Menu File: added command "Delete (Skip Locked)"...
:D Test it and tell me what you think.
I did a fast test drive cleaning up temp folder.

This messages popping up:

Your selection contains 2 locked files which will be skipped from deletion.
Click OK to continue with the deletion of the 1025 unlocked files.

Your selection now contains 36 empty folders

Click OK to delete them now.

Works fine!

Eventually a question about the last message? is this necessary? I already want to clear up the temp folder, selected all items, I don't need a confirmation about empty folders...

Maybe you should add a similar command nuking alternative instead of deleting.

Otherwise works like a charm!

/Ulrik

Re: Delete which skips locked files

Posted: 19 Sep 2006 11:27
by admin
I added the "Your selection now contains ... empty folders" message to prepare the user for the following delete confirmation message. Otherwise you would get two delete confirmation messages directly following each other which is confusing I feel.

Re: Delete which skips locked files

Posted: 19 Sep 2006 11:46
by ugus
admin wrote:I added the "Your selection now contains ... empty folders" message to prepare the user for the following delete confirmation message. Otherwise you would get two delete confirmation messages directly following each other which is confusing I feel.
Ok...I'll see :wink:

A nuking (skip locked files) alternative would also be great!

Maybe Shift + Click on the Nuke button to invoke a Nuke (skipping locked files)

/Ulrik

Re: Delete which skips locked files

Posted: 19 Sep 2006 11:51
by RalphM
ugus wrote:This messages popping up:

Your selection contains 2 locked files which will be skipped from deletion.
Click OK to continue with the deletion of the 1025 unlocked files.

Your selection now contains 36 empty folders

Click OK to delete them now.
Why don't you put 'em both in one message, like:
Your selection contains 2 locked files which will be skipped from deletion.
Click OK to continue with the deletion of 1025 unlocked files and 36 folders.

EDIT: Sorry, just read the change log now - so that idea is probably not possible, since you don't seem to know in step (1) about the number of empty folders that will result from the delete op.

Re: Delete which skips locked files

Posted: 19 Sep 2006 12:03
by admin
RalphM wrote:
ugus wrote:This messages popping up:

Your selection contains 2 locked files which will be skipped from deletion.
Click OK to continue with the deletion of the 1025 unlocked files.

Your selection now contains 36 empty folders

Click OK to delete them now.
Why don't you put 'em both in one message, like:
Your selection contains 2 locked files which will be skipped from deletion.
Click OK to continue with the deletion of 1025 unlocked files and 36 folders.
Because I know only after the deletion of the files which folders are empty. You might for example have said "no" to a "Delete read-only file?"-prompt...

Re: Delete which skips locked files

Posted: 19 Sep 2006 13:58
by admin
RalphM wrote:EDIT: Sorry, just read the change log now - so that idea is probably not possible, since you don't seem to know in step (1) about the number of empty folders that will result from the delete op.
You got it. :)

Re: Delete which skips locked files

Posted: 19 Sep 2006 14:07
by admin
ugus wrote:A nuking (skip locked files) alternative would also be great!

Maybe Shift + Click on the Nuke button to invoke a Nuke (skipping locked files)
I'll add 2 things:

(1) SHIFT + delete (skip locked): -> no recycle bin
(2) SHIFT (or maybe rather CTRL??)+Nuke: -> skip locked
OR
(2) :idea: or simply make Nuke always skip locked!! Since Nuke has no confirmation dialogs anyway, it will be almost as fast as now and avoid all the locked trouble!

BTW: I wonder whether I should generally do CTRL+DEL -> skip locked. But this needs careful consideration... later.

Re: Delete which skips locked files

Posted: 19 Sep 2006 14:57
by ugus
admin wrote:
(2) :idea: or simply make Nuke always skip locked!! Since Nuke has no confirmation dialogs anyway, it will be almost as fast as now and avoid all the locked trouble!
I'll vote for making Nuke always skip locked.

Just my two cents /Ulrik