summaryrefslogtreecommitdiff
path: root/fileinfo.go
diff options
context:
space:
mode:
Diffstat (limited to 'fileinfo.go')
-rw-r--r--fileinfo.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/fileinfo.go b/fileinfo.go
index 079f56a..c5a7f1d 100644
--- a/fileinfo.go
+++ b/fileinfo.go
@@ -12,6 +12,7 @@ type FileInfo struct {
name string
size int64
mtime time.Time
+ isDir bool
objectInfo *minio.ObjectInfo
}
@@ -38,7 +39,7 @@ func (fi *FileInfo) ModTime() time.Time {
// abbreviation for Mode().IsDir()
func (fi *FileInfo) IsDir() bool {
- return false // S3 has no directories
+ return fi.isDir
}
// underlying data source (can return nil)