Error restoring mongoDB because of

I’ve ran mongodump --uri to a specific location.
Then I ran mongorestore and the name of that specific location where I dumped the files.
Now I can’t run the restore because of an error: Failed: error scanning filesystem: invalid database name ‘’: illegal character ‘.’ found in db name ‘’.