mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 04:25:38 +01:00
Fix
This commit is contained in:
@@ -123,6 +123,10 @@ pub async fn clean_files() -> Result<(), Box<dyn Error>> {
|
||||
}
|
||||
|
||||
let documents_folder_path = entry.path().join(documents_folder_name);
|
||||
if !documents_folder_path.exists() {
|
||||
continue;
|
||||
}
|
||||
|
||||
let mut document_folder = match tokio::fs::read_dir(documents_folder_path.clone()).await {
|
||||
Ok(v) => v,
|
||||
Err(err) => panic!("Path: {:?}, Error: {:?}", documents_folder_path, err),
|
||||
|
||||
Reference in New Issue
Block a user