fs refactor
This commit is contained in:
parent
3dcf27d900
commit
0fa3a91447
13 changed files with 80 additions and 71 deletions
pkg/ctxbilly
|
@ -13,10 +13,6 @@ type Filesystem interface {
|
|||
// it if it already exists. If successful, methods on the returned File can
|
||||
// be used for I/O; the associated file descriptor has mode O_RDWR.
|
||||
Create(ctx context.Context, filename string) (File, error)
|
||||
// Open opens the named file for reading. If successful, methods on the
|
||||
// returned file can be used for reading; the associated file descriptor has
|
||||
// mode O_RDONLY.
|
||||
Open(ctx context.Context, filename string) (File, error)
|
||||
// OpenFile is the generalized open call; most users will use Open or Create
|
||||
// instead. It opens the named file with specified flag (O_RDONLY etc.) and
|
||||
// perm, (0666 etc.) if applicable. If successful, methods on the returned
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue