Mongodump specify the output and filename

Is there a way to specify the whole path when running mongodump? I tried using –out but what it does at the moment is saving into a file at my_given_path/database/collection_name.json.gz I have the following: path = file_path + ‘/’ + database + ‘/’ + collection + ‘/’ query_input = "{\\\"metadata_id\\\": {\\\"\$oid\\\": \\\"" + metadata_id +… Read More Mongodump specify the output and filename