recreate a directory