package
0.0.0-20250310161700-3b05d22755dd
Repository: https://github.com/ungerik/go-fs.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
DirEntryFromFileInfo wraps a io/fs.FileInfo as io/fs.DirEntry.
DropboxContentHash returns a Dropbox compatible 64 hex character content hash by reading from an io.Reader until io.EOF or the ctx gets cancelled.
Ext returns the extension of filePath including the point, or an empty string.
No description provided by the author
MatchAnyPattern returns true if name matches any of patterns, or if len(patterns) == 0.
NewFileBuffer returns a new FileBuffer.
NewFileBufferWithClose returns a new FileBuffer.
NewReadonlyFileBuffer returns a new ReadonlyFileBuffer.
No description provided by the author
NewReadonlyFileBufferWithClose returns a new ReadonlyFileBuffer.
RandomString returns a 120 bit randum number encoded as URL compatible base64 string with a length of 20 characters.
SplitDirAndName is a generic helper for FileSystem.SplitDirAndName implementations.
No description provided by the author
TrimExt returns a filePath with a path where the extension is removed.

# Structs

FileBuffer is a memory buffer that implements ReadWriteSeekCloser which combines the interfaces io.Reader io.ReaderAt io.Writer io.WriterAt io.Seeker io.Closer.
ReadonlyFileBuffer is a memory buffer that implements ReadSeekCloser which combines the interfaces io/fs.File io.Reader io.ReaderAt io.Seeker io.Closer.