A File object contains a filename and provides methods to return informataion about the name or directory
![]() | File (const string& filename) Construct this object |
![]() | getName () const Gets the name of the file |
![]() | getAbsolutePath () const Gets the absolute path of the file |
![]() | getParent () const Gets the Parent directory of the file |
![]() | hasParent () const Checks to see if the file has parent directory |
![]() | isAbsolute () const Checks to see if the filename is an absolute path form (i |
![]() | exists () const Checks to see if the file exists or not |
![]() | isDirectory () const Checks to see if the file exists and is a directory |
![]() | isFile () const Checks to see if the file exists and is not a directory |
![]() | list () const Returns a list of the contents of this directory |
![]() | list (const Filter& filter) const Returns a list of file names after being filtered |
![]() | mkdir () const Create a directory |
![]() | paramString () const Returns a string representation for File which is used for debugging purposes |
A File object contains a filename and provides methods to return informataion about the name or directory. The filename may be either an absolute pathname or relative to the current working directory. It may refer to either a plain file or a directory.Usage: eg 1). File("Makefile"); eg 2). File("/usr/local/mrt/Certificates");
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de