Added ignoreFolder parameter to File::clear() to avoid unnecessary paths to be cleared