![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXDir.h>
Public Types | |
enum | { MatchAll = 0, NoFiles = 1, NoDirs = 2, AllFiles = 4, AllDirs = 8, HiddenFiles = 16, HiddenDirs = 32, NoParent = 64, CaseFold = 128 } |
Public Member Functions | |
FXDir () | |
FXDir (const FXString &path) | |
virtual FXbool | open (const FXString &path) |
virtual FXbool | isOpen () const |
virtual FXbool | next (FXString &name) |
virtual void | close () |
virtual | ~FXDir () |
Static Public Member Functions | |
static FXbool | create (const FXString &path, FXuint perm=FXIO::AllFull) |
static FXbool | remove (const FXString &path) |
static FXbool | rename (const FXString &srcpath, const FXString &dstpath) |
static FXint | listFiles (FXString *&filelist, const FXString &path, const FXString &pattern="*", FXuint flags=FXDir::MatchAll) |
static FXint | listDrives (FXString *&drivelist) |
static FXbool | createDirectories (const FXString &path, FXuint perm=FXIO::AllFull) |
anonymous enum |
Options for listing files.
FX::FXDir::FXDir | ( | ) |
Construct directory enumerator.
FX::FXDir::FXDir | ( | const FXString & | path | ) |
Construct directory enumerator open on path.
virtual FX::FXDir::~FXDir | ( | ) | [virtual] |
Destructor.
Open directory to path, return true if ok.
virtual FXbool FX::FXDir::isOpen | ( | ) | const [virtual] |
Returns true if the directory is open.
Go to next directory entry and return its name.
virtual void FX::FXDir::close | ( | ) | [virtual] |
Close directory.
Create directory.
Rename directory.
static FXint FX::FXDir::listFiles | ( | FXString *& | filelist, | |
const FXString & | path, | |||
const FXString & | pattern = "*" , |
|||
FXuint | flags = FXDir::MatchAll | |||
) | [static] |
List files in a given directory.
Returns the number of files in the string-array list which matched the pattern or satisfied the flag conditions.
List drives, i.e.
roots of directory trees. Return the number of drives in the string array.
static FXbool FX::FXDir::createDirectories | ( | const FXString & | path, | |
FXuint | perm = FXIO::AllFull | |||
) | [static] |
Create a directories recursively.
![]() |