<div dir="ltr">Good day all,<div><br></div><div>as it seemed to be a good idea, I wrote a PEP proposal for pathlib to contain file operations.</div><div><br></div><div>Here is the draft. What do you think about this?</div><div><br></div><div>BR,</div><div>George</div><div><br></div><div>---------------------------</div><div><br></div><div><br></div><div><div>PEP: 9999</div><div>Title: Pathlib Module Should Contain All File Operations</div><div>Author: George Fischhof <george at <a href="http://fischhof.hu">fischhof.hu</a>></div><div>Status: Draft</div><div>Type: Standards Track</div><div>Content-Type: text/x-rst</div><div>Created: 15-Mar-2018</div><div>Python-Version: 3.8</div><div>Post-History:</div><div><br></div><div><br></div><div>Abstract</div><div>========</div><div><br></div><div>This PEP proposes pathlib module to be a centralized place for all</div><div>file-system related operations.</div><div><br></div><div><br></div><div>Rationale</div><div>=========</div><div><br></div><div>Right now we have several modules that contain functions related</div><div>to file-system operations mainly the os, pathlib and shutil.</div><div>For beginners it is quite hard to remember where can he / she find</div><div>a function (copy resides in shutil, but the remove function can be</div><div>found in the os module.  (And sometimes developers with moderate</div><div>experience have to check the documentation as well.)</div><div><br></div><div>After the release of version 3.6 several methods became aware of</div><div>path-like object.  There are only a few ones which does not support</div><div>the path-like object.  After making these methods path-like object</div><div>aware, these functions could be added to pathlib.</div><div><br></div><div>With functions in pathlib the developers should not have to think</div><div>on which method (function) can be found in which module.</div><div><br></div><div>Makes the life easier.</div><div><br></div><div><br></div><div>Implementation</div><div>==============</div><div><br></div><div>For compatibility reasons the pathlib should contain wrappers to</div><div>the original functions.  The original functions should remain</div><div>at their original place.  (Or if pathlib contains the function, the</div><div>original modules should have a wrapper to it.)</div><div><br></div><div><br></div><div><br></div><div>Copyright</div><div>=========</div><div><br></div><div>This document has been placed in the public domain.</div><div><br></div><div><br></div><div> </div><div>..</div><div>   Local Variables:</div><div>   mode: indented-text</div><div>   indent-tabs-mode: nil</div><div>   sentence-end-double-space: t</div><div>   fill-column: 70</div><div>   coding: utf-8</div><div>   End: </div></div></div>