delphyne
filesystem.h File Reference
#include <functional>
#include <string>
#include <utility>
Include dependency graph for filesystem.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 delphyne
 

Typedefs

using DirectoryWalkFn = std::function< void(const std::string &path)>
 A function to recursively walk a directory. More...
 

Functions

void WalkDirectory (const std::string &dirpath, const DirectoryWalkFn &walkfn, bool recursive)
 Walks the given dirpath in a top-down fashion. More...
 
bool IsAbsolutePath (const std::string &path)
 Checks whether the given path is absolute or not. More...
 
bool IsValidFilepath (const std::string &path)
 Checks whether the given path is a valid file path (i.e. More...
 
std::string Dirname (const std::string &path)
 Extracts the directory name of the given path. More...
 
std::pair< std::string, std::string > SplitExtension (const std::string &path)
 Splits the given path into a (base path, extension) tuple, extension being the trailing characters preceded by the last dot '. More...