VAPOR3 3.9.4
Enumerations | Functions | Variables
Wasp::FileUtils Namespace Reference

Enumerations

enum class  FileType { File , Directory , Other , Does_Not_Exist }
 

Functions

COMMON_API std::string ReadFileToString (const std::string &path)
 
COMMON_API std::string HomeDir ()
 
COMMON_API std::string Basename (const std::string &path)
 
COMMON_API std::string Dirname (const std::string &path)
 
COMMON_API std::string Realpath (const std::string &path)
 
COMMON_API std::string Relpath (std::string path, std::string to)
 
COMMON_API std::string CommonAncestor (const std::vector< std::string > &paths)
 
COMMON_API std::string Extension (const std::string &path)
 
COMMON_API std::string RemoveExtension (const std::string &path)
 
COMMON_API std::string POSIXPathToWindows (std::string path)
 
COMMON_API std::string POSIXPathToCurrentOS (const std::string &path)
 
COMMON_API std::string CleanupPath (std::string path)
 
COMMON_API long GetFileModifiedTime (const std::string &path)
 
COMMON_API bool IsPathAbsolute (const std::string &path)
 
COMMON_API bool Exists (const std::string &path)
 
COMMON_API bool IsRegularFile (const std::string &path)
 
COMMON_API bool IsDirectory (const std::string &path)
 
COMMON_API bool IsSubpath (const std::string &dir, const std::string &path)
 
COMMON_API bool AreSameFile (const std::string &pathA, const std::string &pathB)
 
COMMON_API FileType GetFileType (const std::string &path)
 
COMMON_API long long GetFileSize (const std::string &path)
 
COMMON_API std::vector< std::string > ListFiles (const std::string &path)
 
COMMON_API std::string JoinPaths (const std::vector< std::string > &paths)
 
COMMON_API std::vector< std::string > SplitPath (std::string path)
 
COMMON_API int MakeDir (const std::string &path)
 
COMMON_API const char * LegacyBasename (const char *path)
 

Variables

COMMON_API const std::string Separator
 

Enumeration Type Documentation

◆ FileType

enum class Wasp::FileUtils::FileType
strong
Enumerator
File 
Directory 
Other 
Does_Not_Exist 

Definition at line 11 of file FileUtils.h.

Function Documentation

◆ AreSameFile()

COMMON_API bool Wasp::FileUtils::AreSameFile ( const std::string &  pathA,
const std::string &  pathB 
)

◆ Basename()

COMMON_API std::string Wasp::FileUtils::Basename ( const std::string &  path)

◆ CleanupPath()

COMMON_API std::string Wasp::FileUtils::CleanupPath ( std::string  path)

◆ CommonAncestor()

COMMON_API std::string Wasp::FileUtils::CommonAncestor ( const std::vector< std::string > &  paths)

◆ Dirname()

COMMON_API std::string Wasp::FileUtils::Dirname ( const std::string &  path)

◆ Exists()

COMMON_API bool Wasp::FileUtils::Exists ( const std::string &  path)

◆ Extension()

COMMON_API std::string Wasp::FileUtils::Extension ( const std::string &  path)

◆ GetFileModifiedTime()

COMMON_API long Wasp::FileUtils::GetFileModifiedTime ( const std::string &  path)

◆ GetFileSize()

COMMON_API long long Wasp::FileUtils::GetFileSize ( const std::string &  path)

◆ GetFileType()

COMMON_API FileType Wasp::FileUtils::GetFileType ( const std::string &  path)

◆ HomeDir()

COMMON_API std::string Wasp::FileUtils::HomeDir ( )

◆ IsDirectory()

COMMON_API bool Wasp::FileUtils::IsDirectory ( const std::string &  path)

◆ IsPathAbsolute()

COMMON_API bool Wasp::FileUtils::IsPathAbsolute ( const std::string &  path)

◆ IsRegularFile()

COMMON_API bool Wasp::FileUtils::IsRegularFile ( const std::string &  path)

◆ IsSubpath()

COMMON_API bool Wasp::FileUtils::IsSubpath ( const std::string &  dir,
const std::string &  path 
)

◆ JoinPaths()

COMMON_API std::string Wasp::FileUtils::JoinPaths ( const std::vector< std::string > &  paths)
JoinPaths({"home", "a/b"});
COMMON_API std::string JoinPaths(const std::vector< std::string > &paths)

◆ LegacyBasename()

COMMON_API const char * Wasp::FileUtils::LegacyBasename ( const char *  path)

◆ ListFiles()

COMMON_API std::vector< std::string > Wasp::FileUtils::ListFiles ( const std::string &  path)

◆ MakeDir()

COMMON_API int Wasp::FileUtils::MakeDir ( const std::string &  path)

◆ POSIXPathToCurrentOS()

COMMON_API std::string Wasp::FileUtils::POSIXPathToCurrentOS ( const std::string &  path)

◆ POSIXPathToWindows()

COMMON_API std::string Wasp::FileUtils::POSIXPathToWindows ( std::string  path)

◆ ReadFileToString()

COMMON_API std::string Wasp::FileUtils::ReadFileToString ( const std::string &  path)

◆ Realpath()

COMMON_API std::string Wasp::FileUtils::Realpath ( const std::string &  path)

◆ Relpath()

COMMON_API std::string Wasp::FileUtils::Relpath ( std::string  path,
std::string  to 
)

◆ RemoveExtension()

COMMON_API std::string Wasp::FileUtils::RemoveExtension ( const std::string &  path)

◆ SplitPath()

COMMON_API std::vector< std::string > Wasp::FileUtils::SplitPath ( std::string  path)

Variable Documentation

◆ Separator

COMMON_API const std::string Wasp::FileUtils::Separator
extern