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