Package storageos implements an os-backed storage Bucket.
func NewReadWriteBucket ¶
func NewReadWriteBucket(rootPath string) (storage.ReadWriteBucket, error)
NewReadWriteBucket returns a new OS bucket.
Only regular files are handled, that is Exists should only be called for regular files, Get and Put only work for regular files, Put automatically calls Mkdir, and Walk only calls f on regular files.
The root path is expected to be normalized, however the root path can be absolute or jump context.