![]() | the sleepy snakeindex :: path :: compact_path | |||||||
==== compact_path(path, w, measure=len, max_pardirs=2)==== Compacts a path to fit into a desired width path the path to compact
Returns the compacted path myPath = "very/long/path/here" print compact_path(myPath, 17) >> "v../../path/here" | ||||||||