From 97f5772ca5b1d23ef623a0aea7a5a7f84b9345f1 Mon Sep 17 00:00:00 2001 From: Ali MJ Al-Nasrawy Date: Mon, 5 Apr 2021 23:21:26 +0300 Subject: Honor --no-symlinks option when listing --- src/listing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/listing.rs b/src/listing.rs index c5eefe6..53d7233 100644 --- a/src/listing.rs +++ b/src/listing.rs @@ -262,7 +262,7 @@ pub fn directory_listing( // if file is a directory, add '/' to the end of the name if let Ok(metadata) = std::fs::metadata(entry.path()) { - if skip_symlinks && metadata.file_type().is_symlink() { + if skip_symlinks && is_symlink { continue; } let last_modification_date = match metadata.modified() { -- cgit v1.2.3