View Full Version: Filenames

LawsonTalk > BCI, Processflow and Addins > Filenames



Title: Filenames
Description: Delete files


ajmohrf - February 21, 2008 06:44 PM (GMT)
What I'm trying to do is pull all the filenames from a certain directory, and based upon their date stamp deleteing them. This directory is an archive directory, so after 2 months I want the file gone. To do this I created a FileAccess node to list the filenames in the directory, then I had a DataIterator parse out the individual files names and pull the date off the end of the filename. Once done I run a branch to see if the date is 60 days in the past.

The problem I'm running into, is when the DataIterator parses each filename separately, it tells me, "ReferenceError: "DataIterator1840_output" is not defined. (threadScript#1). My Input Method is Data - Input data is <!FileAccess2010_filenames> - parse by Delimiter String - delimiter string is a comma.

Am I trying to use these nodes incorrectly or am I missing something?


Thank you!

MannieJ - February 21, 2008 08:43 PM (GMT)
I don't know anything about DataIterator but here's what I have to do every time
a file is copied into archive directory:

In unix I have a script that will copy a file into the archive directory with the same filename and affixed with a time stamp, and based on the filename it will scan the whole archive directory using filename*.* then delete those that are n days and older.

This script will accept filename and number of days as parameter.





Hosted for free by InvisionFree