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
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1427,8 +1427,8 @@
1427
1427
<bool> = <Path>.is_file()
1428
1428
<bool> = <Path>.is_dir()
1429
1429
</code></pre>
1430
-
<pre><codeclass="python language-python hljs"><iter> = <Path>.iterdir() <spanclass="hljs-comment"># Iterator of filenames located at path.</span>
1431
-
<iter> = <Path>.glob(<spanclass="hljs-string">'<pattern>'</span>) <spanclass="hljs-comment"># Filenames matching the wildcard pattern.</span>
1430
+
<pre><codeclass="python language-python hljs"><iter> = <Path>.iterdir() <spanclass="hljs-comment"># Returns dir contents as Path objects.</span>
1431
+
<iter> = <Path>.glob(<spanclass="hljs-string">'<pattern>'</span>) <spanclass="hljs-comment"># Paths matching the wildcard pattern.</span>
1432
1432
</code></pre>
1433
1433
<pre><codeclass="python language-python hljs"><str> = str(<Path>) <spanclass="hljs-comment"># Returns path as a string.</span>
1434
1434
<tup.> = <Path>.parts <spanclass="hljs-comment"># Returns all components as strings.</span>
0 commit comments