feat: Initial

This commit is contained in:
Artёm Mishin committed 2025-04-25 11:20:31 +03:00
commit f0abca60db
26 files changed
+1112

No files matched your search

+28
View File
@@ -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
}