path.py conveniently defines very many (most?) file operations as methods:<div><a href="https://github.com/jaraco/path.py/blob/master/path.py">https://github.com/jaraco/path.py/blob/master/path.py</a></div><div><br></div><div><a href="https://pathpy.readthedocs.io/en/latest/api.html">https://pathpy.readthedocs.io/en/latest/api.html</a></div><div><br></div><div>The division operator is mapped to os.path.join:</div><div><br></div><div>Path('a') / '/root' == Path('/root')<br><br>On Monday, March 12, 2018, George Fischhof <<a href="mailto:george@fischhof.hu">george@fischhof.hu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-03-12 22:16 GMT+01:00 Paul Moore <span dir="ltr"><<a href="mailto:p.f.moore@gmail.com" target="_blank">p.f.moore@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 12 March 2018 at 20:57, George Fischhof <<a href="mailto:george@fischhof.hu" target="_blank">george@fischhof.hu</a>> wrote:<br>
> Good day all,<br>
><br>
> as it seemed to be a good idea, I wrote a PEP proposal for pathlib to<br>
> contain file operations.<br>
><br>
> Here is the draft. What do you think about this?<br>
<br>
</span>I don't know for certain what I think I feel about the idea - in<br>
general, it seems plausible. But I think you'll need to get down to<br>
specifics in the PEP, exactly what functions do you suggest get added<br>
to pathlib?<br>
<span><font color="#888888"><br>
Paul<br>
</font></span></blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">

<div class="gmail_extra" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline">Basically </span> file and directory operations: copy, rename, move, delete. With all variants.<br></div><div class="gmail_extra" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">I will collect them, and put intot PEP</div>

<br></div><div class="gmail_extra">George</div></div>
</blockquote></div>