From 776ec2fd78bf9b109f6255f21f6842cffc280a83 Mon Sep 17 00:00:00 2001 From: Shane C Date: Mon, 18 Nov 2024 21:10:54 -0500 Subject: [PATCH] add IsDir for local filesystem --- storage.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage.go b/storage.go index aa5ef51..8ba4a9d 100644 --- a/storage.go +++ b/storage.go @@ -241,6 +241,7 @@ func (s *Storage) Stat(name string) (*FileInfo, error) { fileInfo.Size = fInfo.Size() fileInfo.ModTime = fInfo.ModTime() fileInfo.Mode = fInfo.Mode() + fileInfo.IsDir = fInfo.IsDir() } return fileInfo, nil