Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 327 Bytes

File metadata and controls

11 lines (8 loc) · 327 Bytes

pathy

Convert paths between Windows SMB/CIFS UNC shares and Linux mount points. Uses the currently mounted CIFS shares and the longest matching prefix.

pathy.py '\\server\share\file.txt'   # → /mnt/share/file.txt
pathy.py -r /mnt/share/file.txt      # → \\server\share\file.txt

Requires Python 3 and psutil.