lib.path.subpath.isValid: Add definition of a subpath

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
Silvan Mosberger 2023-07-20 22:10:39 +02:00
parent b42e178ed4
commit d7bf0d777a

View file

@ -319,6 +319,9 @@ in /* No rec! Add dependencies on this file at the top. */ {
/* Whether a value is a valid subpath string.
A subpath string points to a specific file or directory within an absolute base directory.
It is a stricter form of a relative path that excludes `..` components, since those could escape the base directory.
- The value is a string
- The string is not empty