Expand description
Provides general purpose file and path helpers.
Functionsยง
- get_
project_ name_ from_ path - Gets the last component (name of a project) of a path or returns a default value if the path has no valid last component.
- get_
relative_ or_ absolute_ path - Returns the relative path from
basetofulliffullis insidebase. Iffullis outsidebase, returns the absolute path instead. - replace_
in_ file - Replaces occurrences of specified strings in a file with new values.
- with_
current_ dir - Temporarily changes the current working directory while executing a closure.
- with_
current_ dir_ async - Temporarily changes the current working directory while executing an asynchronous closure.