Open DCNick3 opened 1 year ago
No it doesn't. Use the proper way to store your data in different locations - by editing config.json
People on the server won. I'll add real path resolution here in future versions
I'm glad this is planned to be fixed.
It seems I do not have enough Rust experience to create a PR sadly but https://doc.rust-lang.org/std/fs/fn.canonicalize.html looks like the right thing to use instead of read_link
?
Would this be the cause for https://github.com/an-anime-team/the-honkers-railway-launcher/issues/143 ?
Currently the free space check does not handle symlinks correctly
For example, if I have a symlink from
~/.local/anime-game-launcher
to/var/games/anime-game
and/var
is a different disk from/
, the free space check will incorrectly return the free space for/
.Probably this can be done by resolving the symlink to a real path before doing the mount point check
https://github.com/an-anime-team/anime-game-core/blob/347a4ce274a2842a59ed049749503976affb2e74/src/installer/free_space.rs#L26