HPCToolkit
FileUtil.hpp File Reference
#include <string>
#include <vector>
#include <fnmatch.h>
Include dependency graph for FileUtil.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 FileUtil
 

Functions

string FileUtil::basename (const char *fName)
 
std::string FileUtil::basename (const std::string &fname)
 
string FileUtil::rmSuffix (const char *fName)
 
std::string FileUtil::rmSuffix (const std::string &fname)
 
string FileUtil::dirname (const char *fName)
 
std::string FileUtil::dirname (const std::string &fname)
 
static bool FileUtil::fnmatch (const std::string pattern, const char *string, int flags=0)
 
bool FileUtil::fnmatch (const std::vector< std::string > &patternVec, const char *string, int flags)
 
bool FileUtil::isReadable (const char *path)
 
bool FileUtil::isReadable (const std::string &path)
 
bool FileUtil::isDir (const char *path)
 
bool FileUtil::isDir (const std::string &path)
 
int FileUtil::countChar (const char *path, char c)
 
void FileUtil::copy (const char *dst,...)
 
void FileUtil::copy (const std::string &dst, const std::string &src)
 
void FileUtil::move (const char *dst, const char *src)
 
void FileUtil::move (const std::string &dst, const std::string &src)
 
int FileUtil::remove (const char *file)
 
int FileUtil::mkdir (const char *dir)
 
void FileUtil::mkdir (const std::string &dir)
 
std::pair< string, bool > FileUtil::mkdirUnique (const char *dirnm)
 
std::pair< std::string, bool > FileUtil::mkdirUnique (const std::string &dirnm)
 
const char * FileUtil::tmpname ()