From a845956238e6a41479a7abd59f5c39e71f3f85f4 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Thu, 3 Aug 2017 08:08:53 +0200 Subject: Implement write-dir --- fs/os.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fs') diff --git a/fs/os.go b/fs/os.go index 0a4f614..f41d111 100644 --- a/fs/os.go +++ b/fs/os.go @@ -11,7 +11,7 @@ func pathJoin(parts ...string) string { return strings.Join(parts, string(os.PathSeparator)) } -func openOSFile(path string) (osFile, error) { +func OpenOSFile(path string) (osFile, error) { fi, err := os.Lstat(path) if err != nil { return osFile{}, err @@ -118,7 +118,7 @@ func (f osFile) CreateChildFile(name string, exec bool) (RegularFile, error) { } fh.Close() - return openOSFile(p) + return OpenOSFile(p) } func (f osFile) CreateChildDir(name string) (Dir, error) { @@ -128,7 +128,7 @@ func (f osFile) CreateChildDir(name string) (Dir, error) { return nil, err } - return openOSFile(p) + return OpenOSFile(p) } func (f osFile) CreateChildSymlink(name string, target string) (Symlink, error) { @@ -139,7 +139,7 @@ func (f osFile) CreateChildSymlink(name string, target string) (Symlink, error) return nil, err } - return openOSFile(p) + return OpenOSFile(p) } func (f osFile) RenameChild(oldname, newname string) error { -- cgit v1.2.3-70-g09d2