S3fs
S3 FileSystem (fs.FS) implementation
Install / Use
/learn @jszwec/S3fsREADME
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+
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
349.0kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
