mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 12:19:18 +02:00
* force Archvie bit for file to get a difference if a fileexists or not
git-svn-id: trunk@7485 -
This commit is contained in:
parent
fa5e232055
commit
2e55b74a87
@ -153,6 +153,10 @@ implementation
|
||||
(dir.Name<>'.') or
|
||||
(dir.Name<>'..') then
|
||||
begin
|
||||
{ Force Archive bit so the attribute always has a value. This is needed
|
||||
to be able to see the difference in the directoryentries lookup if a file
|
||||
exists or not }
|
||||
Dir.Attr:=Dir.Attr or faArchive;
|
||||
if not(tf_files_case_sensitive in source_info.flags) then
|
||||
DirectoryEntries.Add(Lower(Dir.Name),Pointer(Ptrint(Dir.Attr)))
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user