mirror of
https://github.com/OMGeeky/gdriver2.git
synced 2026-02-15 22:14:31 +01:00
meta file content
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user