io library

Classes

ExitCode
Exit code constants.
ProcessManager
A high-level abstraction around using and managing processes on the system.
SharedStdIn
A singleton wrapper around stdin that allows new subscribers.
Spawn
A process instance created and managed through ProcessManager.

Properties

sharedStdIn SharedStdIn
A shared singleton instance of dart:io's stdin stream.
final

Functions

copyPath(String from, String to) Future<void>
Copies all of the files in the from directory to to.
copyPathSync(String from, String to) → void
Copies all of the files in the from directory to to.
isExecutable(String path, {bool? isWindows, FutureOr<FileStat> getStat(String path) = FileStat.stat}) FutureOr<bool>
Returns whether path is considered an executable file on this OS.
shellSplit(String command) List<String>
Splits command into tokens according to the POSIX shell specification.

Typedefs

StartProcess = Future<Process> Function(String executable, List<String> arguments, {Map<String, String> environment, bool includeParentEnvironment, ProcessStartMode mode, bool runInShell, String workingDirectory})
Type definition for both io.Process.start and ProcessManager.spawn.