<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">On Mar 12, 2018 1:57 PM, "George Fischhof" <<a href="mailto:george@fischhof.hu">george@fischhof.hu</a>> wrote:<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>This PEP proposes pathlib module to be a centralized place for all</div><div>file-system related operations.</div></div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">I'd find this useful for another reason that hasn't been mentioned yet: having a single class collecting all the common/basic file operations makes it much easier to provide a convenient async version of that interface. For example: <a href="https://trio.readthedocs.io/en/latest/reference-io.html#trio.Path">https://trio.readthedocs.io/en/latest/reference-io.html#trio.Path</a></div><div dir="auto"><br></div><div dir="auto">Obviously it can never be complete, since there are always going to be standalone functions that take paths and work on them internally (for example in third party libraries), but the operations we're talking about here are all pretty basic primitives.</div><div dir="auto"><br></div><div dir="auto">-n</div><div dir="auto"></div></div>