mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD/StashFS: step-6: remove files that no longer exist from Stash in TStashListOperation
This commit is contained in:
parent
a5a8437211
commit
7749d73320
1 changed files with 11 additions and 3 deletions
|
|
@ -65,11 +65,19 @@ var
|
|||
files: TFiles;
|
||||
path: String;
|
||||
f: TFile;
|
||||
i: Integer;
|
||||
begin
|
||||
files:= TFiles.Create( EmptyStr );
|
||||
for path in _paths do begin
|
||||
f:= TFileSystemFileSource.CreateFileFromFile( path );
|
||||
files.Add( f );
|
||||
i:= 0;
|
||||
while i < _paths.Count do begin
|
||||
path:= _paths[i];
|
||||
try
|
||||
f:= TFileSystemFileSource.CreateFileFromFile( path );
|
||||
files.Add( f );
|
||||
inc( i );
|
||||
except
|
||||
_paths.Delete( i );
|
||||
end;
|
||||
end;
|
||||
Result:= files;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue