Json Mongoimport找不到文件?

Json Mongoimport找不到文件?,json,mongodb,mongoimport,Json,Mongodb,Mongoimport,但我知道它就在那里 就在这里!!到底发生了什么事?%20是一种URI转义机制。它在壳里不起作用 尝试: mongoimport--urimongodb+srv://gtye:@dxgraph.rymok.mongodb.net/dxgraph-db--collection dxgraph collection--type json--file~/“DxHero Godot/Data/postgres_export.json” 非常感谢您!!它(几乎)修复了一切!我只需要照你说的做,然后在最后加

但我知道它就在那里


就在这里!!到底发生了什么事?

%20
是一种URI转义机制。它在壳里不起作用

尝试:

mongoimport--urimongodb+srv://gtye:@dxgraph.rymok.mongodb.net/dxgraph-db--collection dxgraph collection--type json--file~/“DxHero Godot/Data/postgres_export.json”
非常感谢您!!它(几乎)修复了一切!我只需要照你说的做,然后在最后加上——jsonArray,然后它就成功了!
mongoimport --uri mongodb+srv://gtye:<PASSWORD>@dxgraph.rymok.mongodb.net/dxgraph-db --collection dxgraph-collection --type json --file ~/DxHero%20Godot/Data/postgres_export.json
2021-05-25T12:58:05.538-0400    Failed: open /Users/gtye/DxHero%20Godot/Data/postgres_export.json: no such file or directory
2021-05-25T12:58:05.538-0400    0 document(s) imported successfully. 0 document(s) failed to import.
mongoimport --uri mongodb+srv://gtye:<PASSWORD>@dxgraph.rymok.mongodb.net/dxgraph-db --collection dxgraph-collection --type json --file ~/"DxHero Godot/Data/postgres_export.json"