Fix chown pull request errors

This commit is contained in:
Mike Futerko 2020-12-07 17:10:55 +02:00
parent cb1d580bf4
commit 5207eb96b7
2 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,7 @@ AppFs.Open('/tmp/foo')
File System Methods Available: File System Methods Available:
```go ```go
Chmod(name string, mode os.FileMode) : error Chmod(name string, mode os.FileMode) : error
Chown(name string, uid, gid int) : error
Chtimes(name string, atime time.Time, mtime time.Time) : error Chtimes(name string, atime time.Time, mtime time.Time) : error
Create(name string) : File, error Create(name string) : File, error
Mkdir(name string, perm os.FileMode) : error Mkdir(name string, perm os.FileMode) : error

View File

@ -67,6 +67,10 @@ func (h HttpFs) Chmod(name string, mode os.FileMode) error {
return h.source.Chmod(name, mode) return h.source.Chmod(name, mode)
} }
func (h HttpFs) Chown(name string, uid, gid int) error {
return h.source.Chown(name, uid, gid)
}
func (h HttpFs) Chtimes(name string, atime time.Time, mtime time.Time) error { func (h HttpFs) Chtimes(name string, atime time.Time, mtime time.Time) error {
return h.source.Chtimes(name, atime, mtime) return h.source.Chtimes(name, atime, mtime)
} }