Modify return values for preparefolder function in the filesysperformer