feat: Initial
This commit is contained in:
commit
f0abca60db
26 files changed
+1112
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package fs
|
||||
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
)
|
||||
|
||||
type FileSystem interface {
|
||||
INodeAt(path string) INode
|
||||
}
|
||||
|
||||
type INode interface {
|
||||
IsExists() bool
|
||||
Stat() (os.FileInfo, error)
|
||||
|
||||
MakeDirs() error
|
||||
RemoveAll() error
|
||||
|
||||
Parent() INode
|
||||
Join(path ...string) INode
|
||||
|
||||
ReadIntoBytes() ([]byte, error)
|
||||
OpenReadStream() (io.ReadCloser, error)
|
||||
OpenWriteStream() (io.WriteCloser, error)
|
||||
|
||||
Name() string
|
||||
AbsolutePath() string
|
||||
}
|
||||
Reference in new issue
Block a user