feat!: add copying for cross fs support
This commit is contained in:
@@ -5,7 +5,7 @@ use std::path::PathBuf;
|
||||
use crate::{Data, error::Result};
|
||||
|
||||
pub trait StorageImpl {
|
||||
fn get_revision(&self) -> Result<usize>;
|
||||
fn get_revision(&self, app_state: Data) -> Result<usize>;
|
||||
fn store_revision(&self, app_state: Data) -> Result<()>;
|
||||
}
|
||||
|
||||
@@ -16,9 +16,9 @@ pub enum Storage {
|
||||
pub const IGNORE_FILES: [&str; 6] = ["assets", "cache", "catpacks", "logs", "meta", "metacache"];
|
||||
|
||||
impl StorageImpl for Storage {
|
||||
fn get_revision(&self) -> Result<usize> {
|
||||
fn get_revision(&self, app_state: Data) -> Result<usize> {
|
||||
match self {
|
||||
Self::FS(storage) => storage.get_revision(),
|
||||
Self::FS(storage) => storage.get_revision(app_state),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user