 |
Shiokaze Framework
A research-oriented fluid solver for computer graphics
|
|
Go to the documentation of this file.
25 #ifndef SHKZ_FILESYSTEM_H
26 #define SHKZ_FILESYSTEM_H
46 static bool is_exist( std::string path );
73 static bool has_root( std::string path );
96 static void rename( std::string old_path, std::string new_path );
static std::string resolve_libname(std::string name)
Get a file path in the dynamic library directory.
static std::string find_resource_path(std::string directory, std::string name)
Get a file path in the resource directory.
static bool create_directory(std::string path)
Create directory to a path.
#define SHKZ_BEGIN_NAMESPACE
Name space beggining definition for shiokaze.
Definition: common.h:39
static std::string parent_path(std::string path)
Get the path to the parent directory.
static bool is_exist(std::string path)
Check if the file to a path exists.
static void remove_file(std::string path)
Delete the file to a path.
static void remove_dir_contents(std::string path)
Delete all the files in a directory.
Class that perform file system related tasks.
Definition: filesystem.h:36
static bool create_directories(std::string path)
Recursively create directory to a path.
static bool has_root(std::string path)
Check if a path contains a root path.
static bool has_parent(std::string path)
Check if a path contains a parent directory.
static void rename(std::string old_path, std::string new_path)
Rename the path (equivalently moving a file/directory)
#define SHKZ_END_NAMESPACE
Name space end definition for shiokaze.
Definition: common.h:44