diff --git a/files/file.go b/files/file.go index e0534fa4..675f7df1 100644 --- a/files/file.go +++ b/files/file.go @@ -124,6 +124,7 @@ func stat(opts FileOptions) (*FileInfo, error) { // set correct file size in case of symlink if file != nil && file.IsSymlink { file.Size = info.Size() + file.IsDir = info.IsDir() return file, nil }