question: protected String escapePath ( String path ) { String escapedPath = path ; if ( escapedPath . contains ( "\\" ) ) { if ( escapedPath . contains ( ":\\" ) ) { escapedPath = '/' + escapedPath ; } escapedPath = escapedPath . replace ( '\\' , '/' ) ; } return escapedPath ; }
target:  Escapes a Windows path: backslashes become slashes, drive paths get prefixed with a slash.