Skip to content

Commit 8d35a4b

Browse files
committed
chore: use metadata.len to remain platform independent
1 parent b1adc37 commit 8d35a4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fs_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ impl FileSystemService {
699699
if !should_exclude && (min_bytes.is_none() || max_bytes.is_none()) {
700700
match dir_entry.metadata().ok() {
701701
Some(metadata) => {
702-
if !self.filesize_in_range(metadata.size(), min_bytes, max_bytes) {
702+
if !self.filesize_in_range(metadata.len(), min_bytes, max_bytes) {
703703
should_exclude = true;
704704
}
705705
}

0 commit comments

Comments
 (0)