diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2017-08-03 08:08:53 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2017-09-26 21:35:40 +0200 |
commit | a845956238e6a41479a7abd59f5c39e71f3f85f4 (patch) | |
tree | c611d5bebf7659e0d52bae4d3693957856eb1014 /fs | |
parent | 9f8ced40c574054de052849c43f69b66e1e91640 (diff) | |
download | petrific-a845956238e6a41479a7abd59f5c39e71f3f85f4.tar.gz petrific-a845956238e6a41479a7abd59f5c39e71f3f85f4.tar.bz2 petrific-a845956238e6a41479a7abd59f5c39e71f3f85f4.zip |
Implement write-dir
Diffstat (limited to 'fs')
-rw-r--r-- | fs/os.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 { |