mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Move instead of copy during content install if possible
This commit is contained in:
parent
2b5075f0e2
commit
6de8d77e17
4 changed files with 44 additions and 22 deletions
|
@ -106,6 +106,10 @@ bool CopyFileContents(const std::string &source, const std::string &target);
|
|||
// Omits files and subdirectories that start with a period
|
||||
bool CopyDir(const std::string &source, const std::string &target);
|
||||
|
||||
// Move directory and all subdirectories
|
||||
// Behavior with files/subdirs that start with a period is undefined
|
||||
bool MoveDir(const std::string &source, const std::string &target);
|
||||
|
||||
// Check if one path is prefix of another
|
||||
// For example, "/tmp" is a prefix of "/tmp" and "/tmp/file" but not "/tmp2"
|
||||
// Ignores case differences and '/' vs. '\\' on Windows
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue