Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (20 sloc) 759 Bytes
layout title published tags
default
isnewerthan
true
reference
files functions
functions
isnewerthan

[%CFEngine_function_prototype(newer, older)%]

Description: Returns whether the file newer is newer (modified later) than the file older.

This function compares the modification time (mtime) of the files, referring to changes of content only.

[%CFEngine_function_attributes(newer, older)%]

Example:

Prepare:

[%CFEngine_include_snippet(isnewerthan.cf, #+begin_src prep, .*end_src)%]

Run:

[%CFEngine_include_snippet(isnewerthan.cf, #+begin_src cfengine3, .*end_src)%]

Output:

[%CFEngine_include_snippet(isnewerthan.cf, #+begin_src\s+example_output\s*, .*end_src)%]

See Also: accessedbefore(), changedbefore()

You can’t perform that action at this time.