summaryrefslogtreecommitdiffstats
path: root/src/launcher/download.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/launcher/download.rs')
-rw-r--r--src/launcher/download.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/launcher/download.rs b/src/launcher/download.rs
index ec89a15..813117c 100644
--- a/src/launcher/download.rs
+++ b/src/launcher/download.rs
@@ -206,6 +206,10 @@ impl VerifiedDownload {
self
}
+ pub fn get_path(&self) -> &Path {
+ &self.path
+ }
+
pub async fn make_dirs(&self) -> Result<(), io::Error> {
fs::create_dir_all(self.path.parent().expect("download created with no containing directory (?)")).await
}