diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx index faeb669b7..9bbedeeab 100644 --- a/src/fs/Path.hxx +++ b/src/fs/Path.hxx @@ -199,6 +199,15 @@ public: return value.c_str(); } + /** + * Returns a pointer to the raw value, not necessarily + * null-terminated. + */ + gcc_pure + const_pointer data() const { + return value.data(); + } + /** * Convert the path to UTF-8. * Returns empty string on error or if this instance is "nulled"