Einzelnen Beitrag anzeigen

Rollo62

Registriert seit: 15. Mär 2007
3.908 Beiträge
 
Delphi 12 Athens
 
#1

faArchive, faSysFile is specific to a platform

  Alt 18. Feb 2016, 15:25
Hallo zusammen,

die Fileattribute sind Platformspezifisch, so wie so gut.

Delphi-Quellcode:
  faInvalid = -1;
  faReadOnly = $00000001;
  faHidden = $00000002 platform; // only a convention on POSIX
  faSysFile = $00000004 platform; // on POSIX system files are not regular files and not directories
  faVolumeID = $00000008 platform deprecated; // not used in Win32
  faDirectory = $00000010;
  faArchive = $00000020 platform;
  faNormal = $00000080;
  faTemporary = $00000100 platform;
  faSymLink = $00000400 platform; // Available on POSIX and Vista and above
  faCompressed = $00000800 platform;
  faEncrypted = $00004000 platform;
  faVirtual = $00010000 platform;
  faAnyFile = $000001FF;
Aber wen kann die Kommentare ergänzen für die restlichen Attribute ?
Bedeutet Platform immer MsWindows ?

Ich würde das gerne beim Aufruf auskommentieren, damit die blöden Warnings weg sind,
bin mir aber nicht sicher ob das nicht doch zuviel des Guten bei OSX, Android oder iOS etc. ist.

So in der Art:
Delphi-Quellcode:
  faInvalid
  , faReadOnly
{$IF    DEFINED(OSX) or DEFINED(ANDROID)} // ist ANDROID Posix ???
  , faHidden // only a convention on POSIX
{$ENDIF DEFINED(OSX) or DEFINED(ANDROID)}
  , faSysFile // on POSIX system files are not regular files and not directories
{$IF    DEFINED(MSWINDOWS)}
  , faVolumeID // not used in Win32
{$ENDIF DEFINED(MSWINDOWS)}
  , faDirectory
{$IF    DEFINED(MSWINDOWS)}
  , faArchive
{$ENDIF DEFINED(MSWINDOWS)}
  , faNormal
  , faTemporary //???
  , faSymLink //???
  , faCompressed //???
  , faEncrypted //???
  , faVirtual //???
  , faAnyFile
Kennt sich vielleicht jemand damit aus und hat einen Tip wo man findet was "platform" wirklich bedeutet ?

Rollo
  Mit Zitat antworten Zitat