Andy Barron
Andy Barron
- `get_app_file` would be identical to `get_app_dir`. - `app_file` would: - Call `create_dir_all` on the path's parent. - Call `OpenOptions::new().create(true).append(true).open` on the full path. - Return the full path. -...
I think trying to use this on Android would activate the `unix` branch and try to use the XDG spec... which I'm _pretty sure_ that Android doesn't follow. :scream:
They're kind of terrible, and I *think* I have a better scheme now: * `app_dir` -> `ensure_app_dir` * `get_app_dir` -> `compute_app_dir` Discussion is very welcome...
[This user](https://www.reddit.com/r/rust/comments/59s8si/new_crate_app_dirs_puts_all_your_apps_data_in_the/d9bjnon/) on Reddit has an example of when using the first thing returned by XDG isn't a good idea. Perhaps we could check each path it returns and choose...
If we can resolve the [mixed slashes issue on Windows](https://github.com/AndyBarron/app-dirs-rs/pull/9#issuecomment-257011676), we should make `[get_]app_dir` generic over `P: AsRef`.
Include every platform and data type. Big table!
I have no idea if this is even plausible, but it'd be cool :tada:
Seriously, the current ~~tests are~~ _test is_ useless 😛
Trying to do something like this: ```ts const conditions = [] // dynamic if (something) { conditions.push({email: "[email protected]"}) } if (somethingElse) { conditions.push({phone: "+12345678910"}) } db.selectOne("person", conditions) ``` Unless I'm...
See [this comment on a previous issue](https://github.com/anima-engine/mrusty/issues/92#issuecomment-260111146). Matching macros on exact type names prevents users from calling the macros with fully qualified type names or typedefs. Possible solutions include trait...