Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFS ¶
func NewFS(baseFS fs.FS, cacheSize int, timeout time.Duration, readOnly bool, logger zLogger.ZLogger) (*zipAsFolderFS, error)
NewFS creates a new zipAsFolderFS which handles zipfiles like folders which are read-only it implements readwritefs.ReadWriteFS, fs.ReadDirFS, fs.ReadFileFS, basefs.CloserFS
func NewZipFSCloser ¶
NewZipFSCloser creates a new zipFSCloser which wraps a zip filesystem and the underlying zip file. It ensures the zip file is closed when the filesystem's reference count reaches zero and Close is called.
Types ¶
type IsClosedFS ¶
type IsClosedFS interface {
IsClosed() bool
}
IsClosedFS is an interface for filesystems that can report their closed state.
type IsRefCountFS ¶
IsRefCountFS defines an interface for filesystems with reference counting.
Click to show internal directories.
Click to hide internal directories.