I\'ve little knowledge of Java. I need to construct a string representation of an URI from FilePath(String) on windows. Sometimes the inputFilePath
FilePath(String)
inputFilePath
These are the valid file uri:
file:/C:/a.txt <- On Windows file:///C:/a.txt <- On Windows file:///home/user/a.txt <- On Linux
So you will need to remove file:/ or file:/// for Windows and file:// for Linux.
file:/
file:///
file://