dirmap

Directory remapper.


License
BSD-1-Clause
Install
pip install dirmap==0.1.0

Documentation

DirMap - The Directory Mapper

Useful for systematically translating paths from one environment to another in which volumes are mounted differently, or directories otherwise moved.

The smallest example:

>>> dirmap = DirMap({'/src': '/dst'})
>>> dirmap('/src/something')
'/dst/something'