summaryrefslogtreecommitdiffstats
path: root/src/common/util/Path.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util/Path.h')
-rw-r--r--src/common/util/Path.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/util/Path.h b/src/common/util/Path.h
index 197ffd16..c84607fb 100644
--- a/src/common/util/Path.h
+++ b/src/common/util/Path.h
@@ -96,6 +96,11 @@ public:
return true;
}
+ static bool is_valid_name(const std::basic_string<char>& path)
+ {
+ return is_valid(string("/").append(path));
+ }
+
/** Convert a string to a valid full path.
*