Expand description
Functions for working with file system paths and loading Ruby source code.
§Examples
assert!(is_explicit_relative("./test/loader"));
assert!(is_explicit_relative("../rake/test_task"));
assert!(!is_explicit_relative("json/pure"));
assert!(!is_explicit_relative("/artichoke/src/json/pure"));
Structs§
- Error returned when a platform string cannot be converted to bytes or bytes cannot be converted to a platform string.
Functions§
- Translate a relative path into an absolute path, using a secondary path as the frame of reference.
- Convert a byte slice to a platform-specific
OsStr
. - Convert a byte vec to a platform-specific
OsString
. - Return whether the given path starts with an explicit relative path.
- Return whether the given byte string to treat as a path starts with an explicit relative path.
- Directory at which Ruby sources and extensions are stored in the virtual file system.
- Normalize path separators to all be
/
. - Convert a platform-specific
OsStr
to a byte slice. - Convert a platform-specific
OsString
to a byte vec.