backend refactor file_system into warren domain
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
use crate::domain::{
|
||||
file_system::{
|
||||
models::file::{File, FilePath},
|
||||
ports::FileSystemNotifier,
|
||||
use crate::domain::warren::{
|
||||
models::{
|
||||
file::{File, FilePath},
|
||||
warren::Warren,
|
||||
},
|
||||
warren::{models::warren::Warren, ports::WarrenNotifier},
|
||||
ports::{FileSystemNotifier, WarrenNotifier},
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
@@ -93,4 +93,8 @@ impl FileSystemNotifier for NotifierDebugLogger {
|
||||
async fn file_deleted(&self, path: &FilePath) {
|
||||
log::debug!("[Notifier] Deleted file {}", path);
|
||||
}
|
||||
|
||||
async fn entry_renamed(&self, old_path: &FilePath, new_path: &FilePath) {
|
||||
log::debug!("[Notifier] Renamed file {} to {}", old_path, new_path);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user