[kepler-dev] File exists? actor
cxh at eecs.berkeley.edu
Mon Apr 24 17:36:05 PDT 2006
Right, DirectoryListing throws an exception if the file cannot be found:
ptolemy.kernel.util.IllegalActionException: Cannot read file
in .<Unnamed Object>.DirectoryListing.directoryOrURL
Cannot read file 'c:/cxh/ptII/ptolemy/actor/lib/io/test/auto/foo' or
You would need to run DirectoryListing in the parent of directory and
do some processing. This sounds gross.
I'm not sure what FileExists is. There is findFile, which
can be used in the expression language.
The docs for findFile are at:
You sometimes see the Expression have a parameter set to
directory listing throws an exception if the directory does not exist.
I need just a true or false so I can branch in the worfklow.
The FileExist expression: I've never heard about this. I know only about
the String methods. How can I use this?
On Mon, 24 Apr 2006, Ilkay Altintas wrote:
> There is a directory listing actor that you can do some processing on the
> You can also use the Expression actor with the FileExists expression.
Kepler-dev mailing list
Kepler-dev at ecoinformatics.org
More information about the Kepler-dev