Branch view, Keep relative paths: copy to semi-protected dirs (with elevated access) fails

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:

Branch view, Keep relative paths: copy to semi-protected dirs (with elevated access) fails

Post by *DrShark »

Operating system like Windows Vista, 7 or higher may be needed to reproduce the issue in easy way as described below.

To reproduce:
1. In targer TC panel, enter some semi-protected folder like %ProgramFiles%, where elevated access is required for writing.
2. In source panel, enter some folder which has subfolders with files inthere.
3. Switch to branch view (Ctrl+B).
4. Select some files which are in mentioned above subfolders.
5. Press F5.
5.1. Check "Keep relative paths (relative to current directory)" option.
6. Start copy process.
7. TC will show a dialog with access denied error ("Error: Cannot read <file name from source>!"), press "As Administrator" or "All as Administrator" there.
Now TC will show another "Access denied on file" dialog with "Skip", "Skip all", "Retry" and "Abort" options. "Retry" doesn't help to copy files, after clicking it "Access denied on file" dialog reappears, so the whole copy operation fails.
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: Branch view, Keep relative paths: copy to semi-protected dirs (with elevated access) fails

Post by *ghisler(Author) »

Sorry, this isn't supported when the relative paths aren't there yet in the target. Try creating them first with F7.
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: Branch view, Keep relative paths: copy to semi-protected dirs (with elevated access) fails

Post by *DrShark »

ghisler(Author) wrote: 2020-08-03, 13:41 UTC Sorry, this isn't supported when the relative paths aren't there yet in the target. Try creating them first with F7.
I tried to create dir with subdirs in F7 after opening %ProgramFiles% in TC on Windows 7 32 bit. I typed:
dir\subdir
in F7, and got:

Code: Select all

---------------------------
Total Commander
---------------------------
Error: Directory [dir\subdir]
not created!
---------------------------
OK
---------------------------
Even more, in %ProgramFiles% I can create a 1 folder "dir" only if I don't type backslash after its name: if I type
dir\
in F7, I get the same error:

Code: Select all

---------------------------
Total Commander
---------------------------
Error: Directory [dir\]
not created!
---------------------------
OK
---------------------------
If there is no backslash after a name, I can create this folder after additional "As Administrator" confirmation in elevation request.
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: Branch view, Keep relative paths: copy to semi-protected dirs (with elevated access) fails

Post by *ghisler(Author) »

Sorry, in admin only directories you cannot create multiple directories together this way.
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: Branch view, Keep relative paths: copy to semi-protected dirs (with elevated access) fails

Post by *DrShark »

ghisler(Author) wrote: 2020-08-17, 16:26 UTCSorry, in admin only directories you cannot create multiple directories together this way.
1. I added a separate bugreport for single directory case: viewtopic.php?f=32&t=72590
2. Total Commander Help doesn't directly mention this limitation, it says:
TC Help, F7: Create directory page wrote:If the creation of the directory fails on Windows XP or newer, you will also be asked whether you want to create the directory "As Administrator".
Even if there are no plans to add "As Administartor" request for multi-level directory creation, I think a note about this should be added to above help text.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: Branch view, Keep relative paths: copy to semi-protected dirs (with elevated access) fails

Post by *DrShark »

ghisler(Author) wrote: 2020-08-17, 16:26 UTCSorry, in admin only directories you cannot create multiple directories together this way.
Are there plans to make multiple directory creation work in "admin only" folders for TC 10 or future versions?
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: Branch view, Keep relative paths: copy to semi-protected dirs (with elevated access) fails

Post by *ghisler(Author) »

No, currently not.
Author of Total Commander
https://www.ghisler.com
Post Reply