summaryrefslogtreecommitdiffstats
path: root/src/launcher/download.rs
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-01-13 20:58:36 -0600
committerLibravatar bigfoot547 <[email protected]>2025-01-13 20:58:36 -0600
commitff428f36935cefd2b6d8ea6ba4a0572d75d6512d (patch)
treecf8b71137247ba74c4a606146d45ec2791725877 /src/launcher/download.rs
parentmore stuff (diff)
library downloads complete
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
}