From 5207eb96b775bbd12dce445db3d0c841c05f48ef Mon Sep 17 00:00:00 2001 From: Mike Futerko Date: Mon, 7 Dec 2020 17:10:55 +0200 Subject: [PATCH] Fix chown pull request errors --- README.md | 1 + httpFs.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index c3e807a..1400bc4 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,7 @@ AppFs.Open('/tmp/foo') File System Methods Available: ```go Chmod(name string, mode os.FileMode) : error +Chown(name string, uid, gid int) : error Chtimes(name string, atime time.Time, mtime time.Time) : error Create(name string) : File, error Mkdir(name string, perm os.FileMode) : error diff --git a/httpFs.go b/httpFs.go index c421936..2b86e30 100644 --- a/httpFs.go +++ b/httpFs.go @@ -67,6 +67,10 @@ func (h HttpFs) Chmod(name string, mode os.FileMode) error { 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 { return h.source.Chtimes(name, atime, mtime) }