ofDoc
>
utils
>
ofFile
Topics
Public Types
Public Functions
Public Static Functions
ofFile
Public Types
Mode
Enumerator
Reference
ReadOnly
WriteOnly
ReadWrite
Append
Public Functions
ofFile
()
ofFile
(string filePath, Mode mode=ReadOnly, bool binary=false)
ofFile
(const ofFile &mom)
ofFile
operator=
(const ofFile &mom)
~ofFile
()
bool
open
(string path, Mode mode=ReadOnly, bool binary=false)
bool
changeMode
(Mode mode, bool binary=false)
void
close
()
bool
create
()
bool
exists
() const
string
path
() const
string
getExtension
() const
string
getFileName
() const
string
getBaseName
() const
string
getEnclosingDirectory
() const
string
getAbsolutePath
() const
bool
canRead
() const
bool
canWrite
() const
bool
canExecute
() const
bool
isFile
() const
bool
isLink
() const
bool
isDirectory
() const
bool
isDevice
() const
bool
isHidden
() const
void
setWriteable
(bool writeable=true)
void
setReadOnly
(bool readable=true)
void
setExecutable
(bool executable=true)
bool
copyTo
(string path, bool bRelativeToData=true, bool overwrite=false)
bool
moveTo
(string path, bool bRelativeToData=true, bool overwrite=false)
bool
renameTo
(string path, bool bRelativeToData=true, bool overwrite=false)
bool
remove
(bool recursive=false)
uint64_t
getSize
() const
Poco::File &
getPocoFile
()
bool
operator==
(const ofFile &file) const
bool
operator!=
(const ofFile &file) const
bool
operator<
(const ofFile &file) const
bool
operator<=
(const ofFile &file) const
bool
operator>
(const ofFile &file) const
bool
operator>=
(const ofFile &file) const
ofBuffer
readToBuffer
()
bool
writeFromBuffer
(const ofBuffer &buffer)
filebuf *
getFileBuffer
() const
Public Static Functions
bool
copyFromTo
(string pathSrc, string pathDst, bool bRelativeToData=true, bool overwrite=false)
bool
moveFromTo
(string pathSrc, string pathDst, bool bRelativeToData=true, bool overwrite=false)
bool
doesFileExist
(string fPath, bool bRelativeToData=true)
bool
removeFile
(string path, bool bRelativeToData=true)