[Suggestion]Automatically create non-exist folder by F5/F6

English support forum

Moderators: white, Hacker, petermad, Stefan2

Cobrattila
New Member
New Member
Posts: 1
Joined: 2004-01-14, 16:31 UTC

Post by *Cobrattila »

Yes, yes! That would be nice! :)
User avatar
Stitscher
Power Member
Power Member
Posts: 1058
Joined: 2004-02-17, 12:34 UTC
Location: Hamburg, Germany

Post by *Stitscher »

Support. ++
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

Some questions for Christian:
1. Why have you asked about a backslash? Why do you need it? It doesn't seem to be necessary...

2a. Will we be able to create a path?
2b. Will we be able to create several directories at once?
I mean: can you implement the same syntax as in the Create folder dialog?

Code: Select all

C:\ExistingFolder\NewFolder|OneMoreNewFolder|AndOneMore\
will create three folders (and here, in future, you may implement simultaneous copy (to newly created directories though) - a highly requested feature, BTW).

3. Will we be able to create directories via MRT (finally :D)? Actually, we can already move files with MRT. So if one dialog regarding moving operation (after F6 is pressed) will support creating folders, why the other dialog (MRT) won't?
Believe it or not, but creating a bunch of folders at a time - it is a feature TC is VERY suitable for, but unable to do it yet... :(
An example on sorting an mp3 collection (in MRT): one receives a 1000 of mp3s with correct tags and wants them to be sorted in $Artist$ folders. Some folders already exist, some not. So (RegEx checked):

Code: Select all

Search for: ^(.)
Replace with: [=audioinfo.Artist]\\$1
will move files to $Artist$ directories no matter whether they were already created (now it works already! - see the link above. But only when folders are there already). Since TC7 will support logging a user may see what folders were created...

Eh, dreams...

4. Actually, if some dialogs will support this feature and some won't, it would look like a major inconsistence... What about packing/unpacking dialogs? (And other dialogs, maybe...)
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Support ++
Hoecker sie sind raus!
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2XPEHOPE3KA
Why have you asked about a backslash? Why do you need it? It doesn't seem to be necessary...
Here is a scenario. I hope it helps to understand the problem.

File C:\Test\MyFile.txt is selected. The user presses F5. TC suggests to copy it to C:\MyFiles\MyFile.txt. The user now edits the target path.

a) He change the target to C:\Windows. C:\Windows already exists. TC know assumes that the user wants to copy the file to C:\Windows (target C:\Windows\MyFile.txt).

b) He change to C:\Download. There is no file or directory called C:\Download. What is the user trying to achieve?
- Target should be really C:\Download
- Target should be C:\Download\MyFile.txt

This is the ambiguity Ghisler talked about and why a backslash makes it clearly.
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

2Lefteous
So you mean the possibility to rename a file to the other name. Ok, I understand.

P.S.: could have thought it out myself...
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Just for your information, I have now added it with the backslash. So if the user enters
c:\download

and nothing with that name exists, the file will be copied to c:\and named "download" as in TC 6.x. If the user enters
c:\download\

the folder "download" will be created, and the file will be copied there. If the user enters
c:\download\MyFile.txt

then the folder "download" will be created, and the file will be copied there and named MyFile.txt.

I think that is the most logical solution.
Author of Total Commander
https://www.ghisler.com
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

2ghisler(Author)
What dialogs will support this feature, except hte copy dialog?
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Give him an inch and he’ll take an ell. :mrgreen:
Developers' lifes must be hard...

Icfu
This account is for sale
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

Developers' lifes must be hard...
Hehe. Users' life sucks too sometimes...
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This auto-creation of directories will be supported by copy, rename and move both in the foreground and in the background.

You may have noticed that it IS already supported in TC6.55 for unpacking.
Author of Total Commander
https://www.ghisler.com
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

2ghisler(Author)
You may have noticed that it IS already supported in TC6.55 for unpacking.
1. Is it mentioned in th changelog? Can't find it...
2. Actually, in unpacking dialog a backslash isn't taken into account.
3. Thank you for implementing a path creation in unpacking dialog too :)
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

1. Is it mentioned in th changelog? Can't find it...
No, it has been there for many years.
2. Actually, in unpacking dialog a backslash isn't taken into account.
It's not necessary, because unpacking doesn't support renaming.
Author of Total Commander
https://www.ghisler.com
Post Reply