latforms the symbolic links are <em>resolved to their
target</em> before applying a <code>..</code> that follows.</p>
<p>To ensure the same behavior on all platforms resolve <code>..</code> segments before
calling <code>resolveSymbolicLinks</code>. One way of doing this is with the <code>Uri</code>
class:</p>
<pre class="language-dart"><code>var path = Uri.parse('.').resolveUri(new Uri.file(input)).toFilePath();
if (path == '') path = '.';
new File(path).resolveSymbolicLinks().then((resolved) {
  print(reso