mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: support fsoCopyIn in TMountedFileSource
This commit is contained in:
parent
e6e0e083fa
commit
df3652d707
1 changed files with 15 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ type
|
|||
function GetProperties: TFileSourceProperties; override;
|
||||
function GetOperationsTypes: TFileSourceOperationTypes; override;
|
||||
function CreateListOperation(TargetPath: String): TFileSourceOperation; override;
|
||||
function CreateCopyInOperation(SourceFileSource: IFileSource;
|
||||
var SourceFiles: TFiles; TargetPath: String): TFileSourceOperation;
|
||||
override;
|
||||
function CreateCopyOutOperation(TargetFileSource: IFileSource;
|
||||
var SourceFiles: TFiles; TargetPath: String): TFileSourceOperation;
|
||||
override;
|
||||
|
|
@ -175,6 +178,18 @@ begin
|
|||
Result:= TMountedListOperation.Create( self, TargetPath );
|
||||
end;
|
||||
|
||||
function TMountedFileSource.CreateCopyInOperation(
|
||||
SourceFileSource: IFileSource; var SourceFiles: TFiles; TargetPath: String
|
||||
): TFileSourceOperation;
|
||||
var
|
||||
fs: TFileSystemFileSource;
|
||||
realPath: String;
|
||||
begin
|
||||
fs:= TFileSystemFileSource.create;
|
||||
realPath:= getRealPath( TargetPath );
|
||||
Result:= fs.CreateCopyInOperation( SourceFileSource, SourceFiles, RealPath );
|
||||
end;
|
||||
|
||||
function TMountedFileSource.CreateCopyOutOperation(
|
||||
TargetFileSource: IFileSource; var SourceFiles: TFiles; TargetPath: String
|
||||
): TFileSourceOperation;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue