5 #include <libutl/Pathname.h> 6 #include <libutl/Time.h> 107 bool exists(
bool ignoreEx =
false)
const;
114 void rename(
const String& path,
bool relative =
true);
117 virtual void unlink();
127 create(
const String& path,
const Directory* dir =
nullptr,
bool followLink =
false);
133 return getFlag(flg_marked);
140 setFlag(flg_marked, marked);
143 #if UTL_HOST_TYPE == UTL_HT_UNIX 149 void stat(
bool force =
false)
const;
150 #if UTL_HOST_OS != UTL_OS_MINGW 152 void lstat(
bool force =
false)
const;
177 Time accessTime()
const;
179 Time modifyTime()
const;
181 Time changeTime()
const;
192 #if UTL_HOST_TYPE == UTL_HT_UNIX 196 #if UTL_HOST_OS != UTL_OS_MINGW 224 #if UTL_HOST_TYPE == UTL_HT_UNIX 225 mutable UnixStatBuf* _stat;
void setMarked(bool marked)
Set the marked flag.
void serialize(bool &b, Stream &stream, uint_t io, uint_t mode=ser_default)
Serialize a boolean.
virtual String toString() const
Return a string representation of self.
void deInit()
De-initialize UTL++.
default representation (via getSerializeMode())
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
Mix-in to provide 64-bits for space-efficient storage of up to 64 boolean flags.
const Directory * directory() const
Get the parent directory.
bool isMarked() const
Get the marked flag.
virtual const Object & getKey() const
Get the key for this object.
unsigned int uint32_t
Unsigned 32-bit integer.
void copy(T *dest, const T *src, size_t len)
Copy one array of objects to another.
field_t
Filesystem object attributes.
void setDirectory(const Directory *dir)
Set the parent directory.
Pathname relativePath() const
Get the relative path.
unsigned int uint_t
Unsigned integer.
Directory filesystem object.
modification time (last write)
const uint_t uint_t_max
Maximum uint_t value.
FSobject(const String &path, const Directory *dir=nullptr)
Constructor.
unsigned long ulong_t
Unsigned long integer.
Root of UTL++ class hierarchy.
int compare(bool lhs, bool rhs)
Compare two boolean values.
void dump(const FwdIt &begin, const FwdIt &end, Stream &os, uint_t level=uint_t_max, bool key=false, bool printClassName=false, uint_t indent=0, const char *separator=nullptr)
Dump objects to the given stream (with Object::dump()).
void init()
Initialize UTL++.