<Path> = <Path>.parent <spanclass="hljs-comment"># Returns path without final component.</span>
<file> = open(<Path>) <spanclass="hljs-comment"># Opens a file and returns file object.</span>
<file> = open(<Path>) <spanclass="hljs-comment"># Opens the file and returns a file object.</span>
</code></pre>
<div><h2id="commandexecution"><ahref="#commandexecution"name="commandexecution">#</a>Command Execution</h2><div><h3id="filesanddirectories">Files and Directories</h3><ul>
<li><strong>Paths can be either strings, Paths, or DirEntry objects.</strong></li>