#include <udir.hpp>
Public Member Functions | |
UDir (const UStr &dirpath) | |
void | readDir (const UStr &path, int path_type, const UStr &prefix, const UStr &filter, bool hidden_files) |
opens this directory and gets file entries. | |
UStr & | getPath () const |
returns the full pathname of the directory note: UDir normalizes the pathname: getPath() may return a value that differs from the argument given to the constructor | |
std::vector< UFileInfo * > | getFileInfos () const |
UFileInfo * | getFileInfo (int k) const |
returns the (filtered) file entries of the directory. | |
unsigned int | getFileCount () const |
returns the entry count. | |
Static Public Member Functions | |
static void | expandDirPath (UStr &dirpath) |
Protected Member Functions | |
void | readLocalDir (const UStr &path, const UStr &prefix, const UStr &filter, bool hidden_files) |
void | readSshDir (const UStr &path, const UStr &prefix, const UStr &filter, bool hidden_files) |
Static Protected Member Functions | |
static bool | compareEntries (const UFileInfo *, const UFileInfo *) |
static void | parseFilter (std::vector< UStr * > &filter_list, const UStr &filter_str) |
Protected Attributes | |
UFileInfo | dir_info |
std::vector< UFileInfo * > | files |
std::vector< UStr * > | filters |
Friends | |
class | UIconbox |
UFileInfo* ubit::UDir::getFileInfo | ( | int | k | ) | const |
returns the (filtered) file entries of the directory.
Notes:
void ubit::UDir::readDir | ( | const UStr & | path, | |
int | path_type, | |||
const UStr & | prefix, | |||
const UStr & | filter, | |||
bool | hidden_files | |||
) |
opens this directory and gets file entries.
Args: