os_files library
Provides information about operating system file system.
The library works in all platforms, including browsers.
Main APIs
- terminalAppDirectories
- Returns directories in the system PATH.
- terminalAppFound
- Inspects whether the terminal application is found (in the system PATH).
- randomTemporaryDirectory
- Generates a path for a temporary directory.
Properties
-
terminalAppDirectories
→ List<
Directory> -
Returns an immutable list of directories in the
PATH
environmental variable.final
Functions
-
randomTemporaryDirectory(
{String? debugName, bool deleteAfterTest = true}) → Directory - Returns a random temporary directory path.
-
terminalAppFound(
String name) → Future< bool> -
Determines whether any directory in terminalAppDirectories
(
PATH
environmental variable) contains the given application.