I know for sure that the file exists on Samba share. But file.exists()
return 'false'
for it.
Another system puts this file in a Samba share folder and notifies our application that the file is uploaded. Than we invoke file.exists()
for check this and get 'false'
Path sourceFile = ...
sourceFile.toFile().exists()
//return 'false' for existing file with path like \\share1\mc\logs.txt
Maybe the file has not yet been completely written or has not been completely closed, could that affect the result file.exists()
?