Page 1 of 1

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

Posted: 2020-08-02, 05:56 UTC
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.

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

Posted: 2020-08-03, 13:41 UTC
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.

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

Posted: 2020-08-14, 07:50 UTC
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.

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

Posted: 2020-08-17, 16:26 UTC
by ghisler(Author)
Sorry, in admin only directories you cannot create multiple directories together this way.

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

Posted: 2020-08-20, 10:18 UTC
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.

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

Posted: 2021-03-24, 13:25 UTC
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?

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

Posted: 2021-03-25, 14:48 UTC
by ghisler(Author)
No, currently not.