We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1baadc6 commit b8659a8Copy full SHA for b8659a8
src/filepath.gleam
@@ -182,7 +182,8 @@ pub fn is_absolute(path: String) -> Bool {
182
/// Expand `..` and `.` segments in a path.
183
///
184
/// If the path has a `..` segment that would go up past the root of the path
185
-/// then an error is returned.
+/// then an error is returned. This may be useful to example to ensure that a
186
+/// path specified by a user does not go outside of a directory.
187
188
/// If the path is absolute then the result will always be absolute.
189
0 commit comments