path.py conveniently defines very many (most?) file operations as methods: https://github.com/jaraco/path.py/blob/master/path.py
https://pathpy.readthedocs.io/en/latest/api.html The division operator is mapped to os.path.join: Path('a') / '/root' == Path('/root') On Monday, March 12, 2018, George Fischhof <geo...@fischhof.hu> wrote: > > > 2018-03-12 22:16 GMT+01:00 Paul Moore <p.f.mo...@gmail.com>: > >> On 12 March 2018 at 20:57, George Fischhof <geo...@fischhof.hu> wrote: >> > Good day all, >> > >> > as it seemed to be a good idea, I wrote a PEP proposal for pathlib to >> > contain file operations. >> > >> > Here is the draft. What do you think about this? >> >> I don't know for certain what I think I feel about the idea - in >> general, it seems plausible. But I think you'll need to get down to >> specifics in the PEP, exactly what functions do you suggest get added >> to pathlib? >> >> Paul >> > > > Basically file and directory operations: copy, rename, move, delete. > With all variants. > I will collect them, and put intot PEP > > George >
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/