|
@ -1464,12 +1464,12 @@ value = args.<name> |
|
|
<pre><code class="python language-python hljs"><Path> = Path(<path> [, ...]) <span class="hljs-comment"># Accepts strings, Paths and DirEntry objects.</span> |
|
|
<pre><code class="python language-python hljs"><Path> = Path(<path> [, ...]) <span class="hljs-comment"># Accepts strings, Paths and DirEntry objects.</span> |
|
|
<Path> = <path> / <path> [/ ...] <span class="hljs-comment"># One of the paths must be a Path object.</span> |
|
|
<Path> = <path> / <path> [/ ...] <span class="hljs-comment"># One of the paths must be a Path object.</span> |
|
|
</code></pre> |
|
|
</code></pre> |
|
|
<pre><code class="python language-python hljs"><Path> = Path() <span class="hljs-comment"># Or: Path('.')</span> |
|
|
|
|
|
<Path> = Path.cwd() <span class="hljs-comment"># Returns the absolute cwd.</span> |
|
|
|
|
|
<Path> = <Path>.resolve() <span class="hljs-comment"># Returns the absolute Path without symlinks.</span> |
|
|
|
|
|
<Path> = <Path>.parent <span class="hljs-comment"># Returns Path without final component.</span> |
|
|
|
|
|
|
|
|
<pre><code class="python language-python hljs"><Path> = Path() <span class="hljs-comment"># Returns relative cwd. Also Path('.').</span> |
|
|
|
|
|
<Path> = Path.cwd() <span class="hljs-comment"># Returns absolute cwd. Also Path().resolve().</span> |
|
|
|
|
|
<Path> = <Path>.resolve() <span class="hljs-comment"># Returns absolute Path without symlinks.</span> |
|
|
</code></pre> |
|
|
</code></pre> |
|
|
<pre><code class="python language-python hljs"><str> = <Path>.name <span class="hljs-comment"># Returns final component.</span> |
|
|
|
|
|
|
|
|
<pre><code class="python language-python hljs"><Path> = <Path>.parent <span class="hljs-comment"># Returns Path without final component.</span> |
|
|
|
|
|
<str> = <Path>.name <span class="hljs-comment"># Returns final component as string.</span> |
|
|
<str> = <Path>.stem <span class="hljs-comment"># Returns final component without extension.</span> |
|
|
<str> = <Path>.stem <span class="hljs-comment"># Returns final component without extension.</span> |
|
|
<str> = <Path>.suffix <span class="hljs-comment"># Returns final component's extension.</span> |
|
|
<str> = <Path>.suffix <span class="hljs-comment"># Returns final component's extension.</span> |
|
|
<tup.> = <Path>.parts <span class="hljs-comment"># Returns all components as strings.</span> |
|
|
<tup.> = <Path>.parts <span class="hljs-comment"># Returns all components as strings.</span> |
|
|