fixed file copy task to check write time