aboutsummaryrefslogtreecommitdiff
path: root/src/filesys.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-09-19 18:16:53 +0200
committersfan5 <sfan5@live.de>2021-10-07 00:20:01 +0200
commit6de8d77e17017cd5cc7b065d42566b6b1cd076cc (patch)
tree1a6fc291b4df620a4b3c09182b0a69c9b42d2036 /src/filesys.h
parent2b5075f0e2a8223cdb07f000b7e8f874416ed3a8 (diff)
downloadminetest-6de8d77e17017cd5cc7b065d42566b6b1cd076cc.tar.gz
minetest-6de8d77e17017cd5cc7b065d42566b6b1cd076cc.tar.bz2
minetest-6de8d77e17017cd5cc7b065d42566b6b1cd076cc.zip
Move instead of copy during content install if possible
Diffstat (limited to 'src/filesys.h')
-rw-r--r--src/filesys.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filesys.h b/src/filesys.h
index 233e56bba..3fa2524c3 100644
--- a/src/filesys.h
+++ b/src/filesys.h
@@ -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