in s3plugin/s3plugin.go [277:290]
func isDirectoryGetSize(path string) (bool, int64) {
fd, err := os.Stat(path)
if err != nil {
gplog.FatalOnError(err)
}
switch mode := fd.Mode(); {
case mode.IsDir():
return true, 0
case mode.IsRegular():
return false, fd.Size()
}
gplog.FatalOnError(errors.New(fmt.Sprintf("INVALID file %s", path)))
return false, 0
}