From 4cecaa757953297355e2e62458a9c625f66c71eb Mon Sep 17 00:00:00 2001 From: slonkazoid Date: Tue, 24 Dec 2024 23:55:51 +0300 Subject: [PATCH] fix symlink not traversing --- src/post/blag.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/post/blag.rs b/src/post/blag.rs index 5ba27c8..96d150c 100644 --- a/src/post/blag.rs +++ b/src/post/blag.rs @@ -168,8 +168,9 @@ impl PostManager for Blag { } }; - let file_type = entry.file_type().await?; - if file_type.is_file() { + let stat = tokio::fs::metadata(entry.path()).await?; + + if stat.file_type().is_file() { let mut name = match entry.file_name().into_string() { Ok(v) => v, Err(_) => {