filesystem.cpp File Reference

Source file defining portability routines for dealing with filesystems. More...

#include <dlrPortability/filesystem.h>
#include <algorithm>
#include <sstream>
#include <sys/stat.h>
#include <sys/types.h>
#include <dlrCommon/exception.h>
#include <dlrCommon/functional.h>
#include <dirent.h>
#include <errno.h>
#include <unistd.h>

Include dependency graph for filesystem.cpp:

Go to the source code of this file.

Namespaces

namespace  dlr
namespace  dlr::portability

Functions

bool dlr::portability::isDirectory (const std::string &path)
 This function returns a bool indicating whether or not the specified path is a directory.
std::string dlr::portability::joinPath (const std::string &part0, const std::string &part1)
std::pair< std::string, std::string > dlr::portability::splitPath (const std::string &path)
 This function accepts a path returns a pair of strings in which the first element is the directory name and the second is the filename.
const std::string & dlr::portability::pathDelimiter ()
const std::string & dlr::portability::extensionDelimiter ()
std::vector< std::string > dlr::portability::listDirectory (const std::string &directoryName, bool fullPath)


Detailed Description

Source file defining portability routines for dealing with filesystems.

Copyright (C) 2003-2005, David LaRose, dlr@cs.cmu.edu See accompanying file, LICENSE.TXT, for details.

Revision
706
Date
2006-08-04 19:41:11 -0400 (Fri, 04 Aug 2006)

Definition in file filesystem.cpp.


Generated on Mon Jul 9 20:34:07 2007 for dlrLibs Utility Libraries by  doxygen 1.5.2