problem delete paths up to 259 characters

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
naglieri
Junior Member
Junior Member
Posts: 2
Joined: 2009-04-20, 06:56 UTC

problem delete paths up to 259 characters

Post by *naglieri »

Sorry but I have this problem:

New beta version of TC 7.5 supports paths up to 259 characters and I'm now able copy file with big path,
problem is delete this kind of file, is not possible.
Only way is delete characters until path is less then 256 characters.

Is possible fix it?

Thanks to all
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, naglieri.
New beta version of TC 7.5 supports paths up to 259 characters
Hm, is it not 1022 characters really?

Apart from this, I can confirm the problem.

Created this folder structure

Code: Select all

d:\FTP\abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz\TheQuickBrownFoxJumpsOverTheLazyDogTheQuickBrownFoxJumpsOverTheLazyDog\abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz\TheQuickBrownFoxJumpsOverTheLazyDogTheQuickBrownFoxJumpsOverTheLazyDog\abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz\
(Length including the backslashes: 309 characters)
Copied the file testit.txt into the deepest folder. Length of fully qualified filename: 318 characters.)

T.C. 7.50PB1 warned that this name exceeded the 259 characters limit. Selected "Keep name". The file was copied correctly.

Now for the issue and a misleading error message:
Note: Delete to recycle bin is ON here by default.
Pressing DEL on the filename yielded a misleading error message:
Error: D:\FTP\....\testit.txt cannot be deleted.
Remove any potential write protection!
The file is not write protected in any way.
T.C. cannot move the file to the recycle bin. That is the problem. - Not sure though whether this is a T.C. problem or a Windows Explorer issue or a Windows API function issue.

Workaround:
Pressing Shift+DEL had the desired effect. The file was deleted. Not to the recycle bin of course, but for good.

Kind regards,
Karl
naglieri
Junior Member
Junior Member
Posts: 2
Joined: 2009-04-20, 06:56 UTC

Post by *naglieri »

karlchen wrote:Hi, naglieri.
New beta version of TC 7.5 supports paths up to 259 characters
Hm, is it not 1022 characters really?
Yes you have right :-)

Workaround:
Pressing Shift+DEL had the desired effect. The file was deleted. Not to the recycle bin of course, but for good.
Thanks for all,
bye and good work
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed Recycle bin doesn't support names longer than 259 characters, and there is no workaround. I prefer not to delete the file directly in that case to avoid data loss. Better leave it to the user to delete the file manually with Shift+Del...
Author of Total Commander
https://www.ghisler.com
Evds
Junior Member
Junior Member
Posts: 90
Joined: 2009-06-10, 11:09 UTC

Post by *Evds »

2ghisler

Would it be possible to change the warning so it is clear that the recycle bin doesn't support such long names but tcmd is able to directly delete the file with shift+delete ?

Because i could copy the file (with more then 259 chars) with tcmd but not delete the file i had the wrong impression that there was a bug in tcmd and tcmd wasn't able to delete such long files.


tcmd 8.01 x32 - win xp sp3
Post Reply