mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Put in the TAR archive first
This commit is contained in:
parent
8577337cc9
commit
abbeefe8d3
1 changed files with 10 additions and 2 deletions
|
|
@ -273,7 +273,11 @@ procedure FillAndCount(Files: TFiles; out NewFiles: TFiles;
|
|||
if (sr.Name='.') or (sr.Name='..') then Continue;
|
||||
aFile := TFileSystemFileSource.CreateFile(srcPath, @sr);
|
||||
|
||||
if aFile.IsDirectory and (not aFile.IsLinkToDirectory) then
|
||||
if aFile.IsLink then
|
||||
begin
|
||||
NewFiles.Add(aFile.Clone);
|
||||
end
|
||||
else if aFile.IsDirectory then
|
||||
begin
|
||||
aFolders.AddObject(srcPath + sr.Name + DirectorySeparator, aFile);
|
||||
end
|
||||
|
|
@ -307,7 +311,11 @@ begin
|
|||
for I := 0 to Files.Count - 1 do
|
||||
begin
|
||||
aFile := Files[I];
|
||||
if aFile.IsDirectory and (not aFile.IsLinkToDirectory) then
|
||||
if aFile.IsLink then
|
||||
begin
|
||||
NewFiles.Add(aFile.Clone);
|
||||
end
|
||||
else if aFile.IsDirectory then
|
||||
begin
|
||||
aFolderList.AddObject(aFile.Path + aFile.Name + DirectorySeparator, aFile.Clone);
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue