add IsDir for local filesystem

This commit is contained in:
Shane C. 2024-11-18 21:10:54 -05:00
parent ddc9ab18f2
commit 776ec2fd78
Signed by: Shane C.
GPG key ID: E46B5FEA35B22FF9

View file

@ -241,6 +241,7 @@ func (s *Storage) Stat(name string) (*FileInfo, error) {
fileInfo.Size = fInfo.Size() fileInfo.Size = fInfo.Size()
fileInfo.ModTime = fInfo.ModTime() fileInfo.ModTime = fInfo.ModTime()
fileInfo.Mode = fInfo.Mode() fileInfo.Mode = fInfo.Mode()
fileInfo.IsDir = fInfo.IsDir()
} }
return fileInfo, nil return fileInfo, nil