ubit
Public Member Functions | Static Public Member Functions | Friends | List of all members
ubit::UFileDir Class Reference

File Directory. More...

#include <ufile.hpp>

Public Member Functions

 UFileDir (const UStr &path)
 
void read (const UStr &path)
 reads this directory and gets file entries. More...
 
void read (const UStr &path, const UStr &prefix, const UStr &filter, bool with_dot_files)
 reads this directory and gets file entries. More...
 
void readRemote (const UStr &path, const UStr &prefix, const UStr &filter, bool with_dot_files)
 reads a remote directory and gets file entries. More...
 
const UStrgetPath () const
 returns the full pathname of the directory note that the path arg. More...
 
const UFileInfos & getFileInfos () const
 returns the (filtered) file entries of the directory.
 

Static Public Member Functions

static void expandDirPath (UStr &dirpath)
 expands the directory path (if there are path symbols in the dirpath).
 

Friends

class UIconbox
 

Detailed Description

File Directory.

Member Function Documentation

§ getPath()

const UStr & ubit::UFileDir::getPath ( ) const

returns the full pathname of the directory note that the path arg.

given to the constr, read(), readRemote() is expanded, so that getPath() may return a different string.

§ read() [1/2]

void ubit::UFileDir::read ( const UStr path)

§ read() [2/2]

void ubit::UFileDir::read ( const UStr path,
const UStr prefix,
const UStr filter,
bool  with_dot_files 
)

reads this directory and gets file entries.

Args:

  • prefix: get files that start witrh this prefix
  • filter: get files with this filter. filter syntax: "C++ Files (*.cpp; *.hpp)" or "*.cc; *.hh" or "*.*" _ with_hidden_files: get files starting with a dot.

§ readRemote()

void ubit::UFileDir::readRemote ( const UStr path,
const UStr prefix,
const UStr filter,
bool  with_dot_files 
)

reads a remote directory and gets file entries.

same as read() but SSH is used to acces a remote directory


The documentation for this class was generated from the following files: