Problems with File.exists and \\'s
Posted by Adam Hacking on
URL: http://imagej.273.s1.nabble.com/Problems-with-File-exists-and-s-tp3692201.html
Hi
File.directory seems to return path with 1 slash \
When checking is a file exists using the above,
File.exists() seems to require that the path contain (2) forward slashes \\ ie
C:\\imageJ\\directory\\some_file.txt
Without such it retuns false when it should return true.
replace(file_check, '\','\\'); is problematic b/c it seems to be an escape character.
Is there a simple solution here ?
Thanks
Adam