项目
在 GitHub 查看 s3fs
jszwec/s3fs
关于
S3 FileSystem (fs.FS) implementation
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文s3fs

Package s3fs provides a S3 implementation for Go1.16 filesystem interface.
Since S3 is a flat structure, s3fs simulates directories by using prefixes and "/" delim. ModTime on directories is always zero value.
SDK Versions
github.com/jszwec/s3fs uses aws sdk v1
github.com/jszwec/s3fs/v2 uses aws sdk v2
Example (SDK v1)
const bucket = "my-bucket"
s, err := session.NewSession()
if err != nil {
log.Fatal(err)
}
s3fs := s3fs.New(s3.New(s), bucket)
// print out all files in s3 bucket.
_ = fs.WalkDir(s3fs, ".", func(path string, d fs.DirEntry, err error) error {
if err != nil {
return err
}
if d.IsDir() {
fmt.Println("dir:", path)
return nil
}
fmt.Println("file:", path)
return nil
})
Installation
go get github.com/jszwec/s3fs
Requirements
- Go1.16+
探索相关项目
加载中…