PathwayA library for interacting with the filesystem | |
Download |
Pathway Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- LeafStorm/Pacific Science
- Publisher web site:
- http://pac-sci.homeip.net/
Pathway Tags
Pathway Description
A library for interacting with the filesystem Pathway is a Python module for interacting with the filesystem in a clean, object-oriented manner. For example, instead of: datafile = os.path.join(datapath, 'somedata.txt') if os.path.exists(datafile) os.rename(datafile, datafile + '.old') fd = open(datafile, 'w') fd.write(data) fd.close()You can write the much cleaner: datadir = pathway.new(datapath) if 'somedata.txt' in datadir: datadir.rename('somedata.txt.old', overwrite=True) datadir.create('somedata.txt', data)The majority of filesystem operations have corresponding methods. The module itself has no dependencies besides Python. Requirements: · Python
Pathway Related Software