#include <FXDir.h>
Public Types | |
enum | { MatchAll, NoFiles, NoDirs, AllFiles, AllDirs, HiddenFiles, HiddenDirs, NoParent, CaseFold } |
Public Member Functions | |
FXDEPRECATEDEXT | FXDir () |
FXDEPRECATEDEXT | FXDir (const FXString &path) |
virtual bool | open (const FXString &path) |
virtual bool | isOpen () const |
virtual bool | next () |
virtual FXString | name () const |
virtual void | close () |
virtual | ~FXDir () |
Static Public Member Functions | |
static bool | create (const FXString &path, FXuint mode=FXIO::OwnerFull|FXIO::GroupFull|FXIO::OtherFull) |
static bool | remove (const FXString &path) |
static bool | 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) |
anonymous enum |
Options for listing files.
FXDEPRECATEDEXT FX::FXDir::FXDir | ( | ) |
Construct directory enumerator.
FXDEPRECATEDEXT FX::FXDir::FXDir | ( | const FXString & | path | ) |
Construct directory enumerator open on path.
virtual FX::FXDir::~FXDir | ( | ) | [virtual] |
Destructor.
virtual bool FX::FXDir::open | ( | const FXString & | path | ) | [virtual] |
Open directory to path, return true if ok.
virtual bool FX::FXDir::isOpen | ( | ) | const [virtual] |
Returns true if the directory is open.
virtual bool FX::FXDir::next | ( | ) | [virtual] |
Go to next one.
virtual FXString FX::FXDir::name | ( | ) | const [virtual] |
Return current file name.
virtual void FX::FXDir::close | ( | ) | [virtual] |
Close directory.
static bool FX::FXDir::create | ( | const FXString & | path, | |
FXuint | mode = FXIO::OwnerFull|FXIO::GroupFull|FXIO::OtherFull | |||
) | [static] |
Create directory.
static bool FX::FXDir::remove | ( | const FXString & | path | ) | [static] |
Remove directory.
Rename or move srcpath to dstpath.
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.
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.