aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2017-08-03 08:08:53 +0200
committerLaria Carolin Chabowski <laria@laria.me>2017-09-26 21:35:40 +0200
commita845956238e6a41479a7abd59f5c39e71f3f85f4 (patch)
treec611d5bebf7659e0d52bae4d3693957856eb1014 /fs
parent9f8ced40c574054de052849c43f69b66e1e91640 (diff)
downloadpetrific-a845956238e6a41479a7abd59f5c39e71f3f85f4.tar.gz
petrific-a845956238e6a41479a7abd59f5c39e71f3f85f4.tar.bz2
petrific-a845956238e6a41479a7abd59f5c39e71f3f85f4.zip
Implement write-dir
Diffstat (limited to 'fs')
-rw-r--r--fs/os.go8
1 files changed, 4 insertions, 4 deletions
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 {