pack-before-delete algorithm was implemented for folders.