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
Copy file name to clipboardExpand all lines: index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1444,7 +1444,7 @@
1444
1444
<file> = open(<Path>) <spanclass="hljs-comment"># Opens a file and returns file object.</span>
1445
1445
</code></pre>
1446
1446
<div><h2id="commandexecution"><ahref="#commandexecution" name="commandexecution">#</a>Command Execution</h2><div><h3id="filesanddirectories">Files and Directories</h3><ul>
1447
-
<li><strong>Paths can be either stringsor Path objects.</strong></li>
1447
+
<li><strong>Paths can be either strings, Paths or DirEntry objects.</strong></li>
1448
1448
<li><strong>All exceptions are either 'OSError' or its subclasses.</strong></li>
1449
1449
</ul><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">import</span> os
1450
1450
<str> = os.getcwd() <spanclass="hljs-comment"># Returns the current working directory.</span>
0 commit comments