|
|
@ -1519,6 +1519,7 @@ value = args.<name> |
|
|
|
<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> |
|
|
|
<Path> = Path.home() <span class="hljs-comment"># Returns user's home directory.</span> |
|
|
|
</code></pre> |
|
|
|
<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 a string.</span> |
|
|
|