Skip to content
Discussion options

You must be logged in to vote

There is one discussion #7199 that mentions this. There the solution was to use Rusts cwd. From my testing (printing it in the console) this leads to project_dir/src-tauri. This is sort of in the same vein. Except I have to traverse up only one instead of thrice.

Yeah, so using rust is really the closest you'll get to it since that's the actual cwd of the program. While tauri's cli is typically aware of the project's root the tauri crate is not, Can't think of an automatic way to get the dir you're expecting rn 🤔

Also on a related note. Is it better to do file searching (like filter out all images in a directory) in Rust or js/ts?
I'm currently doing all the file related searches in fr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DefaultLP
Comment options

Answer selected by DefaultLP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants