Crates.io | mtga_resources_locator |
lib.rs | mtga_resources_locator |
version | 0.1.0 |
source | src |
created_at | 2020-07-03 14:29:34.175044 |
updated_at | 2020-07-03 14:29:34.175044 |
description | A little utility that returns the paths of MTGA logs and assets |
homepage | https://github.com/mtg-rust/mtga_resources_locator |
repository | https://github.com/mtg-rust/mtga_resources_locator |
max_upload_size | |
id | 261030 |
size | 6,906 |
Utility that returns where MTGA data is stored.
Disclaimer: this project started as a way to learn Rust, so this IS full of bugs and anit-patterns and stupid code.
The library exposes two functions:
assets_data_dir()
: returns the PathBuf
relative to the folder where MTGA JSON files are stored;logs_dir()
: returns the PathBuf
relative to the folder where logs are stored.The method should work on both Windows and macOS. Actually only macOS has been tested.