truncate intermedia subfolders