<pre><codeclass="python language-python hljs"><Path> = <Path>.parent <spanclass="hljs-comment"># Returns Path without the final component.</span>
<pre><codeclass="python language-python hljs"><Path> = <Path>.parent <spanclass="hljs-comment"># Returns Path without the final component.</span>
<str> = <Path>.name <spanclass="hljs-comment"># Returns final component as a string.</span>
<str> = <Path>.name <spanclass="hljs-comment"># Returns final component as a string.</span>
<str> = <Path>.stem <spanclass="hljs-comment"># Returns final component without extension.</span>
<str> = <Path>.suffix <spanclass="hljs-comment"># Returns final component's extension.</span>
<tup.> = <Path>.parts <spanclass="hljs-comment"># Returns all components as strings.</span>
<str> = <Path>.stem <spanclass="hljs-comment"># Returns final component w/o last extension.</span>
<str> = <Path>.suffix <spanclass="hljs-comment"># Returns last extension prepended with a dot.</span>
<tup.> = <Path>.parts <spanclass="hljs-comment"># Returns all path's components as strings.</span>