You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Path> = <Path>.parent <spanclass="hljs-comment"># Returns path without final component.</span>
1444
+
<file> = open(<Path>) <spanclass="hljs-comment"># Opens a file and returns file object.</span>
1444
1445
</code></pre>
1445
1446
<div><h2id="commandexecution"><ahref="#commandexecution" name="commandexecution">#</a>Command Execution</h2><div><h3id="filesanddirectories">Files and Directories</h3><ul>
1446
1447
<li><strong>Paths can be either strings or Path objects.</strong></li>
@@ -1468,7 +1469,9 @@
1468
1469
1469
1470
<pre><codeclass="python language-python hljs"><str> = <DirEntry>.path <spanclass="hljs-comment"># Path as a string.</span>
1470
1471
<str> = <DirEntry>.name <spanclass="hljs-comment"># Final component.</span>
0 commit comments