Another question brought up an interesting problem:
On Windows, the Java File.pathSeparatorChar
is ;
, which is correct. However, the semicolon is actually also a valid character to folder or file names. You can create a folder named Test;Test1
on Windows.
The question is: How would you determine whether the semicolon in a path list actually separates a path or is part of the directory name, if the path list can contain both absolute and relative paths?