mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: GioFileSource - Copy files between different locations (fixes #2469)
This commit is contained in:
parent
b4b2d9a36c
commit
c9563cf5ed
1 changed files with 9 additions and 0 deletions
|
|
@ -3713,6 +3713,15 @@ begin
|
|||
// Replace target by temp directory
|
||||
TargetFileSource := TTempFileSystemFileSource.Create();
|
||||
TargetPath := TargetFileSource.GetRootDir;
|
||||
BaseDir := SourceFileSource.CurrentAddress;
|
||||
if Length(BaseDir) > 0 then
|
||||
begin
|
||||
if StrBegins(TargetFiles[0].Path, BaseDir) and
|
||||
not StrBegins(TargetFiles.Path, BaseDir) then
|
||||
begin
|
||||
TargetFiles.Path := BaseDir + TargetFiles.Path;
|
||||
end;
|
||||
end;
|
||||
ChangeFileListRoot(TargetPath, TargetFiles);
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue