Do I need to import a File System plugin if I want to specify a file as an argument in Shell? #12410
Answered
by
FabianLars
Robert-Du0001
asked this question in
Q&A
-
This is a part of my code: Command::new("mongod")
.arg("-f")
.arg("mongod.cfg")
.group_spawn()
.expect("Failed to spawn process"), And below is a portion of the directory structure generated when running the command
But I encountered an error like this: So, I need to import a File System plugin? |
Beta Was this translation helpful? Give feedback.
Answered by
FabianLars
Jan 15, 2025
Replies: 1 comment 2 replies
-
No, the fs plugin is only required if you want to explicitly use the fs apis the plugin provides. In your case i think the cwd is just different than what you expect. I think in dev the cwd is set to the src-tauri dir, but not 100% sure |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Robert-Du0001
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, the fs plugin is only required if you want to explicitly use the fs apis the plugin provides.
In your case i think the cwd is just different than what you expect. I think in dev the cwd is set to the src-tauri dir, but not 100% sure