-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0145040
commit 63b29fe
Showing
17 changed files
with
37 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package fs | ||
|
||
import ( | ||
gocontext "context" | ||
"io" | ||
"os" | ||
) | ||
|
||
// FileInfo is a wrapper for os.FileInfo that also returns the full path of the file. | ||
// | ||
// FullPath is required to support globs with ReadDir() | ||
type FileInfo interface { | ||
os.FileInfo | ||
FullPath() string | ||
} | ||
|
||
type ListItemLimiter interface { | ||
SetMaxListItems(maxList int) | ||
} | ||
|
||
type Filesystem interface { | ||
Close() error | ||
ReadDir(name string) ([]FileInfo, error) | ||
Stat(name string) (os.FileInfo, error) | ||
} | ||
|
||
type FilesystemRW interface { | ||
Filesystem | ||
Read(ctx gocontext.Context, path string) (io.ReadCloser, error) | ||
Write(ctx gocontext.Context, path string, data io.Reader) (os.FileInfo, error) | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.