Does anyone have a solution how to recognize whether file is completed to copy all records?
when being copy a big size file into the folder, other java application need to move other folder only after copying completed.
However, middile of being copy, other java application can move to other folder even has not been finished yet.
File class does not have a relevant method like canWrite() canRead() etc for recognize of complete.
Thus, I used lastModified to check a time and delay for a minute.
which is not good solution becuase even small size file need to wait a certern min to move other folder.
welcome any suggestion,
thanks,
when being copy a big size file into the folder, other java application need to move other folder only after copying completed.
However, middile of being copy, other java application can move to other folder even has not been finished yet.
File class does not have a relevant method like canWrite() canRead() etc for recognize of complete.
Thus, I used lastModified to check a time and delay for a minute.
which is not good solution becuase even small size file need to wait a certern min to move other folder.
welcome any suggestion,
thanks,