summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.hxx.in
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r--Source/kwsys/SystemTools.hxx.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in
index 1d79f2b..89e32a3 100644
--- a/Source/kwsys/SystemTools.hxx.in
+++ b/Source/kwsys/SystemTools.hxx.in
@@ -316,6 +316,12 @@ public:
static bool GetPermissions(const char* file, mode_t& mode);
static bool SetPermissions(const char* file, mode_t mode);
+ /** Get the parent directory of the directory or file */
+ static std::string GetParentDirectory(const char* fileOrDir);
+
+ /** Check if the given file or directory is in subdirectory of dir */
+ static bool IsSubDirectory(const char* fileOrDir, const char* dir);
+
protected:
// these two functions can be called from ConvertToOutputPath
/**