veloren_server/
data_dir.rs

1use std::path::{Path, PathBuf};
2
3/// Used so that different server frontends can share the same server saves,
4/// etc.
5pub const DEFAULT_DATA_DIR_NAME: &str = "server";
6
7/// Indicates where maps, saves, and server_config folders are to be stored
8pub struct DataDir {
9    pub path: PathBuf,
10}
11impl AsRef<Path> for DataDir {
12    fn as_ref(&self) -> &Path { &self.path }
13}