hello! i'm currently getting the IO error Access is denied. (os error 5) when trying to read a file from a command, after already reading it once successfully from the main function.
relevant info
- GitHub Repository
- OS - Windows 11, only tested on Windows as of now, as application doesn't really function on Linux/OSX yet
the file is initially read and seriailized into a struct from the main.rs file (as seen here) (normally, not giving any IO/permission error) and stored as state. my frontend can then go and "refresh" this state from a command (refresh_instances_index, as seen here), which in turn calls another function (get_instances_index_from_path, as seen here) to read it from the file system, causing this error.
i'm really not sure if the application is somehow just not "closing" the file or if it's some weird permission error, but i've been trying to fix this since yesterday, so any help would be appreciated! 💖