Golang's http.FileSystem Implementation for AWS S3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
507 B

package s3fs
import (
type fileinfo struct {
isDir bool
modTime time.Time
key string
size int64
fs *s3FileSystem
func (i fileinfo) IsDir() bool {
return i.isDir
func (i fileinfo) ModTime() time.Time {
return i.modTime
func (i fileinfo) Mode() os.FileMode {
return 0755 | os.ModeDir
func (i fileinfo) Name() string {
return path.Base(i.key)
func (i fileinfo) Size() int64 {
return i.size
func (i fileinfo) Sys() interface{} {
return nil