, which lists the contents of a directory.
The run method completes with a <a href="../dart-io/ProcessResult-class.html">ProcessResult</a> object when the process
terminates. This provides access to the output and exit code from the
process. The run method does not return a Process object; this prevents your
code from interacting with the running process.</p>
<pre class="language-dart"><code>import 'dart:io';

main() {
  // List all files in the current directory in UNIX-like systems.
  Process.run('ls', ['