pathOf

Create a Path object from a string path.

It uses Springs StringUtils.cleanPath() and Path.normalize() to get a proper path. The result is the absolute path of the given file/directory path.

In case that the path is not creatable, it throws an InternalErrorException.