Hi,
I am trying to check modified time of a file in some directory but i am not getting any output. Let me explain the scenario that can be more helpful:
File creation starts at 2am and file is completely created at 3am. I want to transfer file to some external server via ftp only after ensuring that the file is not in the process of creation i.e. transfer file only if it has been created.
My idea was to check the file modified time at two intervals i.e. at current instant and modified time of file again after 10 seconds. If both timestamps are equal, it means file has been created. But not able to check the timestamp of file.
Will appreciate any kind of help to do this.
Regards,