Is this necessary? it will fail if the directory exists but is empty, for example. Trying to do a reindex shouldn't hurt.