act/vendor/gopkg.in/godo.v2/glob/fileAsset.go
Casey Lee e40ab0145f
expressions working
Signed-off-by: Casey Lee <cplee@nektos.com>
2020-02-20 21:05:55 -05:00

20 lines
366 B
Go

package glob
import "os"
// FileAsset contains file information and path from globbing.
type FileAsset struct {
os.FileInfo
// Path to asset
Path string
}
// Stat updates the stat of this asset.
func (fa *FileAsset) Stat() (*os.FileInfo, error) {
fi, err := os.Stat(fa.Path)
if err != nil {
return nil, err
}
fa.FileInfo = fi
return &fa.FileInfo, nil
}