meta file content

This commit is contained in:
OMGeeky
2024-02-18 15:16:57 +01:00
parent dccb864342
commit bc2ed11bb4
6 changed files with 58 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
use crate::prelude::*;
use std::ffi::OsString;
use std::path::PathBuf;
use std::path::{Path, PathBuf};
use serde::{Deserialize, Serialize};
@@ -45,6 +45,17 @@ pub struct GDriverSettings {
cache_path: PathBuf,
downloaded_path: PathBuf,
}
impl GDriverSettings {
pub fn metadata_path(&self) -> &Path {
&self.metadata_path
}
pub fn cache_path(&self) -> &Path {
&self.cache_path
}
pub fn downloaded_path(&self) -> &Path {
&self.downloaded_path
}
}
impl Default for GDriverSettings {
fn default() -> Self {