52 #ifndef __PCL_FileInfo_h
53 #define __PCL_FileInfo_h
58 #include <pcl/Diagnostics.h>
107 namespace FileAttribute
115 Character = 0x00000002,
117 Regular = 0x00000008,
118 Directory = 0x00000010,
119 SymbolicLink = 0x00000020,
121 FileType = 0x000000FF,
128 Archive = 0x00001000,
129 Compressed = 0x00002000,
130 Encrypted = 0x00004000,
132 ReadOnly = 0x00010000,
134 Temporary = 0x00040000,
142 Execute = 0x00400000,
143 ReadGroup = 0x01000000,
144 WriteGroup = 0x02000000,
145 ExecuteGroup = 0x04000000,
146 ReadOthers = 0x10000000,
147 WriteOthers = 0x20000000,
148 ExecuteOthers = 0x40000000,
149 FilePermissions= 0xFFF00000
228 return ToJD() - 2440587.5;
378 return NameAndExtension();
403 return m_attributes.IsFlagSet( FileAttribute::Directory );
411 return m_attributes.IsFlagSet( FileAttribute::Regular );
422 return m_attributes.IsFlagSet( FileAttribute::SymbolicLink );
444 return m_attributes.IsFlagSet( FileAttribute::Hidden );
504 return m_numberOfHardLinks;
546 return m_lastAccessed;
555 return m_lastModified;
579 int m_numberOfHardLinks;
A combination of file type, attribute and access mode flags.
Platform-independent information on file and directory items.
bool IsSymbolicLink() const
const FileAttributes & Attributes() const
void Refresh(const String &path)
bool IsExecutable() const
int NumberOfHardLinks() const
const FileTime & LastAccessed() const
const String & Path() const
FileInfo(const FileInfo &)=default
String NameAndSuffix() const
String NameAndExtension() const
String CompleteSuffix() const
String SymbolicLinkTarget() const
const FileTime & TimeCreated() const
FileInfo(const String &path)
const FileTime & LastModified() const
uint8 second
Second [0,59].
uint8 minute
Minute [0,59].
double DaysSinceEpoch() const
double SecondsSinceEpoch() const
bool operator<(const FileTime &t) const
bool operator==(const FileTime &t) const
uint16 milliseconds
Milliseconds [0,999].