mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD/StashFS: step-5: support rename in StashFileSource
This commit is contained in:
parent
6ace022260
commit
a5a8437211
1 changed files with 11 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ type
|
|||
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;
|
||||
function CreateSetFilePropertyOperation(var theTargetFiles: TFiles; var theNewProperties: TFileProperties): TFileSourceOperation; override;
|
||||
end;
|
||||
|
||||
implementation
|
||||
|
|
@ -175,7 +176,7 @@ end;
|
|||
|
||||
function TStashFileSource.GetOperationsTypes: TFileSourceOperationTypes;
|
||||
begin
|
||||
Result:= [fsoList, fsoCopyIn, fsoCopyOut];
|
||||
Result:= [fsoList, fsoCopyIn, fsoCopyOut, fsoSetFileProperty];
|
||||
end;
|
||||
|
||||
class function TStashFileSource.CreateFile(const APath: String): TFile;
|
||||
|
|
@ -207,6 +208,15 @@ begin
|
|||
TargetPath );
|
||||
end;
|
||||
|
||||
function TStashFileSource.CreateSetFilePropertyOperation(
|
||||
var theTargetFiles: TFiles; var theNewProperties: TFileProperties
|
||||
): TFileSourceOperation;
|
||||
begin
|
||||
Result:= _fileSystemFS.CreateSetFilePropertyOperation(
|
||||
theTargetFiles,
|
||||
theNewProperties );
|
||||
end;
|
||||
|
||||
initialization
|
||||
stashFileSourceProcessor:= TStashFileSourceProcessor.Create;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue