diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util/Path.h | 5 |
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. * |