java.nio.file.Path apparently uses system-dependent separators, i.e. / on UNIX-like systems and \\ on Windows (this I cannot test, but
java.nio.file.Path
/
\\