Hi.
I need to create a sweeper program that moves files from one unix directory to another and changes the extension. But I need to ensure that the file is not being written to at the time I move it or I will corrupt the file. Any suggestions?
Plan B: Just look at the modified date and only pick up files older then 10 minutes or something...but I am trying to see if there are better ways than this.
Any feedback is appreciated.
I need to create a sweeper program that moves files from one unix directory to another and changes the extension. But I need to ensure that the file is not being written to at the time I move it or I will corrupt the file. Any suggestions?
Plan B: Just look at the modified date and only pick up files older then 10 minutes or something...but I am trying to see if there are better ways than this.
Any feedback is appreciated.