this log message does not fit the actual code, since you open foldername/result