[TC 11.02] USB drive sleep breaks copying long path files

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
andry81
Junior Member
Junior Member
Posts: 97
Joined: 2018-11-22, 19:17 UTC

[TC 11.02] USB drive sleep breaks copying long path files

Post by *andry81 »

I've noticed that long path files does copy at the end of the whole process of a directory copy operation.

The dialog does appear and asks about keep long names. If press `Keep All`, then basically the operation proceeds with copy long path files.

But if before a click to `Keep All` do wait a while until USB drive fall sleep and then click, then the operation reports an error something about write protection.

I suspect the internal file handles must be reopened after the drive wake up or something like what. Because copy restart with skip existing files does copy the rest of files.

OS: Windows 8 x64 build 9600
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.02] USB drive sleep breaks copying long path files

Post by *ghisler(Author) »

Sorry, I don't think there is anything I can do in this case to prevent the USB drive from sleeping.
At least you get an error so you can redo the operation.
Author of Total Commander
https://www.ghisler.com
andry81
Junior Member
Junior Member
Posts: 97
Joined: 2018-11-22, 19:17 UTC

Re: [TC 11.02] USB drive sleep breaks copying long path files

Post by *andry81 »

2ghisler(Author) You can try to wake up the drive by check the first handle on access and if not, then try to reopen it.
JOUBE
Power Member
Power Member
Posts: 1477
Joined: 2004-07-08, 08:58 UTC

Re: [TC 11.02] USB drive sleep breaks copying long path files

Post by *JOUBE »

andry81 wrote: 2023-11-21, 05:39 UTC I've noticed that long path files does copy at the end of the whole process of a directory copy operation.

The dialog does appear and asks about keep long names. If press `Keep All`, then basically the operation proceeds with copy long path files.
To prevent this, put in section [Configuration] of wincmd.ini:

Code: Select all

LongNameCopy=1
HTH

Joube
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.02] USB drive sleep breaks copying long path files

Post by *ghisler(Author) »

Moderator message

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
Post Reply