Get file path for java that works on both windows and mac

broken image
broken image

The Path is obtained by invoking the getPath method of the default FileSystem. Is the empty string and more does not contain any non-empty

broken image

Path string '/foo/bar/gus' is converted to a Path.Ī Path representing an empty path is returned if first ' /' and getPath('/foo','bar','gus') is invoked, then the Typically they will be joined using the name-separator as the separator. The details as to how the Strings are joined is provider specific but Of name elements (see Path) and is joined to form a path string. Non-empty string, including first, is considered to be a sequence If more specifies one or more elements then each If more does not specify anyĮlements then the value of the first parameter is the path string Converts a path string, or a sequence of strings that when joined formĪ path string, to a Path.