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