`path` does some file parsing to found the mount, points and dir, it would be better to get the path in the main method then just pass it to each of these methods, it will also remove an if err block in each