The filetime function returns the last modified date and time of a file or a directory. The argument file_name is either a string expression giving a file or directory name or is a file handler declared in a File statement in PROCGLOBAL.
Return Value
If the file or directory exists, the function returns a timestamp value indicating the last modified date and time. If the file or directory does not exist, the function returns default.
// only sync photos that were not previously synced iffiletime(photos_list(counter)) > last_sync_timestamp then syncfile(PUT, photos_list(counter), "/Photos/"); endif;