Add 'Type' detection for folders

Only cleanup/setup type=0 (local drive)