getAbsolutePath() on a remote path will not work.