mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Apply some refactoring/cleanup to mainly util functions
This commit is contained in:
parent
89e3bc8d56
commit
e73eed247e
19 changed files with 190 additions and 160 deletions
|
@ -49,15 +49,14 @@ bool IsDir(const std::string &path);
|
|||
|
||||
bool IsExecutable(const std::string &path);
|
||||
|
||||
inline bool IsFile(const std::string &path)
|
||||
bool IsFile(const std::string &path);
|
||||
|
||||
inline bool IsDirDelimiter(char c)
|
||||
{
|
||||
return PathExists(path) && !IsDir(path);
|
||||
return c == '/' || c == DIR_DELIM_CHAR;
|
||||
}
|
||||
|
||||
bool IsDirDelimiter(char c);
|
||||
|
||||
// Only pass full paths to this one. True on success.
|
||||
// NOTE: The WIN32 version returns always true.
|
||||
// Only pass full paths to this one. returns true on success.
|
||||
bool RecursiveDelete(const std::string &path);
|
||||
|
||||
bool DeleteSingleFileOrEmptyDirectory(const std::string &path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue