2 #include "zipios++/zipios-config.h"
15 const char FilePath::_separator =
'/' ;
38 if ( stat( _path.c_str(), &buf ) != -1 ) {
40 #if defined(BOOST_WINNT)
41 _is_reg = _S_IFREG & buf.st_mode ;
42 _is_dir = _S_IFDIR & buf.st_mode ;
43 _is_char = _S_IFCHR & buf.st_mode ;
45 _is_reg = S_ISREG ( buf.st_mode ) ;
46 _is_dir = S_ISDIR ( buf.st_mode ) ;
47 _is_char = S_ISCHR ( buf.st_mode ) ;
48 _is_block = S_ISBLK ( buf.st_mode ) ;
49 _is_socket = S_ISSOCK( buf.st_mode ) ;
50 _is_fifo = S_ISFIFO( buf.st_mode ) ;
FilePath(const string &path="", bool check_exists=false)
Constructor.
void pruneTrailingSeparator()
Prunes the trailing separator of a specified path.
void check() const
This function sets _checked to true, stats the path, to see if it exists and to determine what type o...
Header file that defines FilePath.