ofDoc
>
utils
>
ofDirectory
Topics
Public Functions
Public Static Functions
ofDirectory
Public Functions
ofDirectory
()
ofDirectory
(string path)
void
open
(string path)
void
close
()
bool
create
(bool recursive=false)
bool
exists
() const
string
path
() const
string
getAbsolutePath
() const
bool
canRead
() const
bool
canWrite
() const
bool
canExecute
() const
bool
isDirectory
() const
bool
isHidden
() const
void
setWriteable
(bool writeable=true)
void
setReadOnly
(bool readable=true)
void
setExecutable
(bool executable=true)
void
setShowHidden
(bool showHidden)
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)
void
allowExt
(string extension)
int
listDir
(string path)
int
listDir
()
string
getOriginalDirectory
()
string
getName
(unsigned int position)
string
getPath
(unsigned int position)
ofFile
getFile
(unsigned int position, ofFile::Mode mode=ofFile::Reference, bool binary=false)
ofFile
getFiles
()
ofFile
operator[]
(unsigned int position)
bool
getShowHidden
()
void
reset
()
void
sort
()
unsigned int
size
()
int
numFiles
()
Poco::File &
getPocoFile
()
bool
operator==
(const ofDirectory &dir)
bool
operator!=
(const ofDirectory &dir)
bool
operator<
(const ofDirectory &dir)
bool
operator<=
(const ofDirectory &dir)
bool
operator>
(const ofDirectory &dir)
bool
operator>=
(const ofDirectory &dir)
ofFile
begin
()
ofFile
end
()
ofFile
begin
() const
ofFile
end
() const
ofFile
rbegin
()
ofFile
rend
()
ofFile
rbegin
() const
ofFile
rend
() const
Public Static Functions
bool
createDirectory
(string dirPath, bool bRelativeToData=true, bool recursive=false)
bool
isDirectoryEmpty
(string dirPath, bool bRelativeToData=true)
bool
doesDirectoryExist
(string dirPath, bool bRelativeToData=true)
bool
removeDirectory
(string path, bool deleteIfNotEmpty, bool bRelativeToData=true)