Below given is the code to check if a file exists.
This code works on Windows but on Linux it fails even when the file exists.
Please let me know if you have a solution or a work around for this.
Has anybody experienced the same problem.
boolean DoesTheFileExis t(String filePath)
{
File fp = new File(filePath);
if(true == fp.exists())
{
return true;
}
else
{
return false;
}
}
Regards,
Ganesh
This code works on Windows but on Linux it fails even when the file exists.
Please let me know if you have a solution or a work around for this.
Has anybody experienced the same problem.
boolean DoesTheFileExis t(String filePath)
{
File fp = new File(filePath);
if(true == fp.exists())
{
return true;
}
else
{
return false;
}
}
Regards,
Ganesh
Comment