a href="dart-io/Link-class.html">Link</a> instance for the renamed link.</p>
<p>If <code>newPath</code> identifies an existing link, that link is
replaced. If <code>newPath</code> identifies an existing file or directory,
the operation fails and the future completes with an exception.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">Future&lt;Link&gt; rename(String newPath);</