path.cpp File Reference

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

#include <cstring>
#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::utilities
 This namespace contains general utility functions and classes for string manipluation, program option parsing, working with time and filenames, and a few other odds and ends.

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
1030
Date
2008-08-27 21:39:08 -0400 (Wed, 27 Aug 2008)

Definition in file path.cpp.


Generated on Wed Nov 25 11:07:10 2009 for dlrUtilities Utility Library by  doxygen 1.5.8