Hello,
I am trying to use Python caller to check if a folder exist. Here is the code:
But it doesnt geve back outcome to attribute "van". Where is my mistake?
import fme
import fmeobjects
import os
def processFeature(feature):
van = os.path.isdir(feature.getAttribute('_LAS_eleresiutvonal'))
print van
feature.setAttribute('_van', van)
class FeatureProcessor(object):
def __init__(self):
pass
def input(self,feature):
self.pyoutput(feature)
def close(self):
pass