|
CoolProp 8.0.0
An open-source fluid property and humid air property database
|
#include <cstddef>#include <string>#include <vector>Go to the source code of this file.
Functions | |
| std::string | get_separator () |
| Get directory separator. More... | |
| std::string | get_home_dir () |
| Get the user's home directory; It is believed that is is always a place that files can be written. More... | |
| bool | path_exists (const std::string &path) |
| Return true if path exists. More... | |
| std::string | join_path (const std::string &one, const std::string &two) |
| Return merged path, append separator if string two is empty. More... | |
| void | make_dirs (const std::string &file_path) |
| Make directory and all required intermediate directories. More... | |
| unsigned long long | CalculateDirSize (const std::string &path) |
| std::string | get_file_contents (const char *filename) |
| std::vector< char > | get_binary_file_contents (const char *filename) |
| Get all the contents of a binary file. More... | |
| unsigned long long CalculateDirSize | ( | const std::string & | path | ) |
Get the size of a directory in bytes. Uses std::filesystem on modern platforms (Windows, Linux, macOS). Legacy Android/powerpc stub returns 0.
Definition at line 41 of file CPfilepaths.cpp.
| std::vector< char > get_binary_file_contents | ( | const char * | filename | ) |
Get all the contents of a binary file.
Definition at line 87 of file CPfilepaths.cpp.
| std::string get_file_contents | ( | const char * | filename | ) |
Definition at line 319 of file CPfilepaths.cpp.
| std::string get_home_dir | ( | ) |
Get the user's home directory; It is believed that is is always a place that files can be written.
Definition at line 226 of file CPfilepaths.cpp.
| std::string get_separator | ( | ) |
Get directory separator.
Definition at line 206 of file CPfilepaths.cpp.
| std::string join_path | ( | const std::string & | one, |
| const std::string & | two | ||
| ) |
Return merged path, append separator if string two is empty.
Definition at line 299 of file CPfilepaths.cpp.
| void make_dirs | ( | const std::string & | file_path | ) |
Make directory and all required intermediate directories.
Definition at line 167 of file CPfilepaths.cpp.
| bool path_exists | ( | const std::string & | path | ) |
Return true if path exists.
Definition at line 270 of file CPfilepaths.cpp.