Actually, Kees, it's a lot easier than that. You merely need to state: if there is a file <pathName> then -- do something end if
Ain't Revolution grand? :-) Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Website: http://www.sonsothunder.com/ ----- Original Message ----- From: "Kees van Eekelen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 22, 2001 4:50 AM Subject: (no subject) > L.S. > > if one wants to check if a file is present in some distant (system) > folder, one has to use a construction like: > > put the directory into tDirectory -- > remember where I an now > set the directory to specialFolderPath(Extension) -- > move to the target folder > if "my Target File" is not in the files then -- > check if it's there > -- do something > set the directory to tDirectory -- > and go back to where we came from > > Now wouldn't it be nice if the 'files()' function used an argument > for the target directory (none is current dir.), so that we can write: > > if "my Target File" is not in > files(specialFolderPath(Extension)) then -- check if it's there > -- do something > > One can always use files() (no argument) for the current dir, and be > backward compatible as well :-) > > Shouldn't be too difficult, should it ? > > > Greetings, Kees > -- > Drs. C.W.J.M. van Eekelen > Head of ICT dept. > Faculty of Social Sciences > University of Nijmegen > Thomas van Aquinostraat 4.00.49 > PO Box 9104 > NL-6500 HE Nijmegen > The Netherlands > Voice : +31 24 36 11814 > Email : [EMAIL PROTECTED] > _______________________________________________ > improve-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/improve-revolution > _______________________________________________ improve-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/improve-revolution
