F7: create single directoy fails if name followed by backslash and elevation is required

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

F7: create single directoy fails if name followed by backslash and elevation is required

Post by *DrShark »

ghisler(Author) wrote: 2020-08-17, 16:26 UTCSorry, in admin only directories you cannot create multiple directories together this way.
(by "multiple directories together", multi-level is meant)
To reproduce:
In folder like %ProgramFiles% where elevation is required for writing, try to create 1 folder "dir" with typed backslash after its name:
dir\
in F7, it will fail with error:

Code: Select all

---------------------------
Total Commander
---------------------------
Error: Directory [dir\]
not created!
---------------------------
OK
---------------------------
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: F7: create single directoy fails if name followed by backslash and elevation is required

Post by *ghisler(Author) »

This fails because the backslash triggers the multiple subdirs function, which doesn't work in root only folders.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: F7: create single directoy fails if name followed by backslash and elevation is required

Post by *DrShark »

ghisler(Author) wrote: 2020-08-20, 11:29 UTCThis fails because the backslash triggers the multiple subdirs function, which doesn't work in root only folders.
Could the trigger be changed so at least 2 backslashes would be required in New folder dialog to activate multiple subdirs creation function?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply