path.cpp File Reference

Source file defining routines for working with the filesystem. More...

#include <sys/types.h>
#include <sys/stat.h>
#include <algorithm>
#include <list>
#include <dlrCommon/functional.h>
#include <dlrPortability/filesystem.h>
#include <dlrUtilities/path.h>

Include dependency graph for path.cpp:

Go to the source code of this file.

Namespaces

namespace  dlr
namespace  dlr::utilities

Functions

bool dlr::utilities::isDirectory (const std::string &path)
 This function returns a bool indicating whether or not the specified path is a directory.
bool dlr::utilities::isExistingPath (const std::string &path)
bool dlr::utilities::isRegularFile (const std::string &path)
std::string dlr::utilities::joinPath (const std::string &part0, const std::string &part1)
 Joins two path elements with the appropriate path delimiter.
std::vector< std::string > dlr::utilities::listDirectory (const std::string &directoryName, bool fullPath=false)
 Returns the names of the entries in the specified directory, in no particular order.
std::vector< std::string > dlr::utilities::recursiveListDirectory (const std::string &directoryName, bool fullPath=false, bool includeDirectoryNames=false)
 Returns the names of files in the directory tree below the specified directory.
std::pair< std::string, std::string > dlr::utilities::splitExtension (const std::string &fileName)
 Returns a std::pair<std::string, std::string> containing the fileName without its extension, and the extension.
std::pair< std::string, std::string > dlr::utilities::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.


Detailed Description

Source file defining routines for working with the filesystem.

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

Revision
885
Date
2007-05-04 01:01:15 -0400 (Fri, 04 May 2007)

Definition in file path.cpp.


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