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§
- Convert
Bytes Error - Error returned when a platform string cannot be converted to bytes or bytes cannot be converted to a platform string.
Functions§
- absolutize_
relative_ to - Translate a relative path into an absolute path, using a secondary path as the frame of reference.
- bytes_
to_ os_ str - Convert a byte slice to a platform-specific
OsStr
. - bytes_
to_ os_ string - Convert a byte vec to a platform-specific
OsString
. - is_
explicit_ relative - Return whether the given path starts with an explicit relative path.
- is_
explicit_ relative_ bytes - Return whether the given byte string to treat as a path starts with an explicit relative path.
- memory_
loader_ ruby_ load_ path - Directory at which Ruby sources and extensions are stored in the virtual file system.
- normalize_
slashes - Normalize path separators to all be
/
. - os_
str_ to_ bytes - Convert a platform-specific
OsStr
to a byte slice. - os_
string_ to_ bytes - Convert a platform-specific
OsString
to a byte vec.