I have the following python script which is called through a java class. It works fine with local filenames ('D:\temp\Test.pdf') but when the filename is \serverA\f$\dir\Test.pdf, it always returns false. It is running on a tomcat server (with Admin rights) and the serverA drive f is mounted on the tomcat server machine. Any ideas on what I might be missing?
def checkFileExists(filename):
vFile = File(filename)
if (vFile == None):
return False
return vFile.exists()