path.</p>
<p>Will not remove the root component of a Windows path, like "C:\" or
"\\server_name\". Ignores trailing path separators, and leaves no
trailing path separators.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">static String parentOf(String path) {
  int rootEnd = -1;
  if (Platform.isWindows) {
    if (path.startsWith(_absoluteWindowsPathPattern)) {
      &#47;&#47