mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Process symlinks (Windows)
This commit is contained in:
parent
26423b9015
commit
019b0ffb66
2 changed files with 9 additions and 9 deletions
|
|
@ -74,12 +74,7 @@ begin
|
|||
FStatistics.CurrentFile := aFile.Path + aFile.Name;
|
||||
UpdateStatistics(FStatistics);
|
||||
|
||||
if aFile.IsDirectory then
|
||||
begin
|
||||
Inc(FStatistics.Directories);
|
||||
ProcessSubDirs(aFile.Path + aFile.Name + DirectorySeparator);
|
||||
end
|
||||
else if aFile.IsLink then
|
||||
if aFile.IsLink then
|
||||
begin
|
||||
Inc(FStatistics.Links);
|
||||
|
||||
|
|
@ -107,6 +102,11 @@ begin
|
|||
end;
|
||||
end;
|
||||
end
|
||||
else if aFile.IsDirectory then
|
||||
begin
|
||||
Inc(FStatistics.Directories);
|
||||
ProcessSubDirs(aFile.Path + aFile.Name + DirectorySeparator);
|
||||
end
|
||||
else
|
||||
begin
|
||||
// Not always this will be regular file (on Unix can be socket, FIFO, block, char, etc.)
|
||||
|
|
|
|||
|
|
@ -254,10 +254,10 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
if aFile.IsDirectory then
|
||||
AddDirectory(aFile, CurrentNode)
|
||||
else if aFile.IsLink then
|
||||
if aFile.IsLink then
|
||||
DecideOnLink(aFile, CurrentNode)
|
||||
else if aFile.IsDirectory then
|
||||
AddDirectory(aFile, CurrentNode)
|
||||
else
|
||||
AddFile(aFile, CurrentNode);
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue