Is there a way to check for existence of a folder in pentaho?
问题 I know that there is a "Check if a folder is empty", but it does not check for existing of the folder. 回答1: But to use it in Pentaho is more complicated. When creating a Job rather than a transform, straight Java is not directly available (that I know of). The good news is PDI's JavaScript interpreter is Rhino. That means all Java's objects and classes are available to JavaScript. As such the check is pretty easy. Add a variable or parameter in your job and call it something like dirpath and