basic selection + download multiple files with selection
This commit is contained in:
@@ -8,7 +8,7 @@ use crate::domain::{
|
||||
warren::{
|
||||
models::{
|
||||
auth_session::requests::FetchAuthSessionResponse,
|
||||
file::{AbsoluteFilePath, LsResponse},
|
||||
file::{AbsoluteFilePath, AbsoluteFilePathList, LsResponse},
|
||||
share::{
|
||||
CreateShareResponse, DeleteShareResponse, GetShareResponse, ListSharesResponse,
|
||||
ShareCatResponse, ShareLsResponse,
|
||||
@@ -58,10 +58,10 @@ impl WarrenNotifier for NotifierDebugLogger {
|
||||
tracing::debug!("[Notifier] Fetched warren {}", warren.name());
|
||||
}
|
||||
|
||||
async fn warren_cat(&self, warren: &Warren, path: &AbsoluteFilePath) {
|
||||
async fn warren_cat(&self, warren: &Warren, paths: &AbsoluteFilePathList) {
|
||||
tracing::debug!(
|
||||
"[Notifier] Fetched file {} in warren {}",
|
||||
path,
|
||||
"[Notifier] Fetched {} file(s) in warren {}",
|
||||
paths.paths().len(),
|
||||
warren.name(),
|
||||
);
|
||||
}
|
||||
@@ -165,8 +165,8 @@ impl WarrenNotifier for NotifierDebugLogger {
|
||||
|
||||
async fn warren_share_cat(&self, response: &ShareCatResponse) {
|
||||
tracing::debug!(
|
||||
"[Notifier] Fetched file {} from share {}",
|
||||
response.path(),
|
||||
"[Notifier] Fetched {} file(s) from share {}",
|
||||
response.paths().paths().len(),
|
||||
response.share().id(),
|
||||
);
|
||||
}
|
||||
@@ -177,8 +177,8 @@ impl FileSystemNotifier for NotifierDebugLogger {
|
||||
tracing::debug!("[Notifier] Listed {} file(s)", response.files().len());
|
||||
}
|
||||
|
||||
async fn cat(&self, path: &AbsoluteFilePath) {
|
||||
tracing::debug!("[Notifier] Fetched file {path}");
|
||||
async fn cat(&self, paths: &AbsoluteFilePathList) {
|
||||
tracing::debug!("[Notifier] Fetched {} file(s)", paths.paths().len());
|
||||
}
|
||||
|
||||
async fn mkdir(&self, path: &AbsoluteFilePath) {
|
||||
@@ -356,10 +356,11 @@ impl AuthNotifier for NotifierDebugLogger {
|
||||
);
|
||||
}
|
||||
|
||||
async fn auth_warren_cat(&self, user: &User, warren_id: &Uuid, path: &AbsoluteFilePath) {
|
||||
async fn auth_warren_cat(&self, user: &User, warren_id: &Uuid, paths: &AbsoluteFilePathList) {
|
||||
tracing::debug!(
|
||||
"[Notifier] User {} fetched file {path} in warren {warren_id}",
|
||||
"[Notifier] User {} fetched {} file(s) in warren {warren_id}",
|
||||
user.id(),
|
||||
paths.paths().len(),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user