isnewer
Purpose
Test whether a file is newer than another file.
Synopsis
function isnewer(new:text, old:text):boolean
Arguments
|
new
|
Path to the file to test.
|
|
old
|
Path to the reference file.
|
Return value
true if file
new is newer than file
old or if file
old does not exist
Example
cp("-f","myfile.txt","newfile.txt") ! Copy has same date as original
! -> CP myfile.txt newfile.txt
writeln(isnewer("newfile.txt","myfile.txt")) ! Output: false
ftouch("newfile.txt") ! Set file date to current time
writeln(isnewer("newfile.txt","myfile.txt")) ! Output: true
© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation ("FICO"). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
