Skip to content
Prev 207394 / 398513 Next

Read files in a folder when new data files come

You can read the status of every file in a directory and make the
decision to process it.  One technique is to create a file in the
directory the last time that you processed information from the
directory.  You could schedule an R script to first read in your
'flag' file and determine the date it was created and then get all the
files in the directory that are later than that date to process them.
You would then rewrite your flag file to update its modification date
for the next round.

Does this do what you want?
On Sun, Jan 24, 2010 at 3:05 PM, jlfmssm <jlfmssm at gmail.com> wrote: