Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Which file is newer? (See related posts)

    newer?: func [
        {Returns true if target-1 was modified more recently than target-2;
        false otherwise.}
        target-1 [file! url!]
        target-2 [file! url!]
    ][
        if not exists? target-1 [return false]
        either any [
            all [
                (not none? modified? target-1)
                (none? modified? target-2)
            ]
            (greater? modified? target-1 modified? target-2)
        ] [true] [false]
    ]

You need to create an account or log in to post comments to this site.


Click here to browse all 5140 code snippets

Related Posts