Search for file / Check file properties

From: Roger Levy <roger.levy_at_gmail.com>
Date: Thu, 7 Aug 2008 10:55:21 -0400

Hi All,
I wanted to implement an automatic resource-update facility, but I'm not
sure how to do it in SwiftForth, or where to find out.

I would like to be able to search for a file in a source directory and see
if we need to copy it to a target directory.

If the source file is found,

1. If it doesn't exist in the target directory, copy it and exit.

2. If it exists in the target directory and the source file is newer than
the target file, copy it and exit.

3. Else do nothing and exit.

Mostly I was just wondering what are the commands to use to 1.) find a file
in a directory and 2.) check its Last Modified attribute.

Roger

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Thu Aug 07 2008 - 07:55:42 PDT


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 08-Feb-2012. Archive updated nightly.