aboutsummaryrefslogtreecommitdiff
path: root/fs/fs.go
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2017-07-12 17:18:52 +0200
committerLaria Carolin Chabowski <laria@laria.me>2017-07-20 08:09:23 +0200
commit3d645268b0030fba5cc2c66bdcc715274cd5bb1c (patch)
tree4b834e8835c07a5bcd69efaa0f565defd9cb086b /fs/fs.go
parent78754a7b23e5fc7a40bd3c450d54a193aaf585b1 (diff)
downloadpetrific-3d645268b0030fba5cc2c66bdcc715274cd5bb1c.tar.gz
petrific-3d645268b0030fba5cc2c66bdcc715274cd5bb1c.tar.bz2
petrific-3d645268b0030fba5cc2c66bdcc715274cd5bb1c.zip
Implement restoring
Diffstat (limited to 'fs/fs.go')
-rw-r--r--fs/fs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fs.go b/fs/fs.go
index cbfeb44..b06ded8 100644
--- a/fs/fs.go
+++ b/fs/fs.go
@@ -29,10 +29,13 @@ type RegularFile interface {
type Dir interface {
File
Readdir() ([]File, error)
+ GetChild(name string) (File, error) // Must return os.ErrNotExist, if child doesn't exist
CreateChildFile(name string, exec bool) (RegularFile, error)
CreateChildDir(name string) (Dir, error)
CreateChildSymlink(name string, target string) (Symlink, error)
+
+ RenameChild(oldname, newname string) error
}
type Symlink interface {