Made deleteInDirectory use deleteInDirectoryApartFrom.