Skip to content

azalea-rs/minecraft_folder_path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minecraft folder path

Get the location of the user's .minecraft directory.

Based on a JavaScript library of the same name.

This is primarily useful if you want to cache Minecraft-related data in the user's default Minecraft directory. Note that they may have multiple .minecraft directories, or it may be somewhere else if they configured it to be.

// Windows: `%appdata%.minecraft`
// Mac: `$HOME/Library/Application Support/minecraft`
// Linux: `$HOME/.minecraft`
if let Some(minecraft_dir) = minecraft_folder_path::minecraft_dir() {
    println!("{minecraft_dir}");
}

About

A Rust crate to get the location of the user's .minecraft directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages