Documentation
¶
Index ¶
- Constants
- func Base(p string) string
- func Dir(p string) string
- func DirBaseOnly(p string) string
- func DoesDirectoryContainPath(dir, path string) bool
- func Ext(p string) string
- func ExtSansDot(p string) string
- func FileNameSansExt(p string) string
- func FileNameSansExtRelTo(p, d string) (string, error)
- func FsRootDir() string
- func ZettelId(p string) string
- type FD
- func MakeFromDirPath(path string) (fd *FD, err error)
- func MakeFromFileInfoWithDir(fileInfo os.FileInfo, dir string, blobStore interfaces.BlobWriterFactory) (fd *FD, err error)
- func MakeFromPath(baseDir string, path string, blobWriter interfaces.BlobWriterFactory) (fd *FD, err error)
- func MakeFromPathAndDirEntry(path string, dirEntry fs.DirEntry, blobWriter interfaces.BlobWriterFactory) (fd *FD, err error)
- func (fd *FD) Clone() (dst *FD)
- func (fd *FD) DepthRelativeTo(dir string) int
- func (fd *FD) DirBaseOnly() string
- func (fd *FD) Equals(b *FD) bool
- func (fd *FD) Equals2(b *FD) (bool, string)
- func (fd *FD) Exists() bool
- func (fd *FD) Ext() string
- func (fd *FD) ExtSansDot() string
- func (fd *FD) FileName() string
- func (fd *FD) FileNameSansExt() string
- func (fd *FD) FileNameSansExtRelTo(d string) (string, error)
- func (fd *FD) FilePathRelTo(d string) (string, error)
- func (fd *FD) FilePathSansExt() string
- func (fd *FD) GetDigest() interfaces.MarklId
- func (fd *FD) GetPath() string
- func (fd *FD) GetState() State
- func (fd *FD) IsDir() bool
- func (fd *FD) IsEmpty() bool
- func (fd *FD) IsStdin() bool
- func (fd *FD) ModTime() thyme.Time
- func (fd *FD) Remove(directoryLayout directory_layout.Mutable) (err error)
- func (fd *FD) Reset()
- func (fd *FD) ResetWith(src *FD)
- func (fd *FD) Set(v string) (err error)
- func (fd *FD) SetFileInfoWithDir(fi os.FileInfo, dir string) (err error)
- func (fd *FD) SetFromFileInfoWithDir(fileInfo os.FileInfo, dir string, blobStore interfaces.BlobWriterFactory) (err error)
- func (fd *FD) SetFromPath(baseDir string, path string, blobStore interfaces.BlobWriterFactory) (err error)
- func (fd *FD) SetIgnoreNotExists(v string) (err error)
- func (fd *FD) SetPath(p string) (err error)
- func (fd *FD) SetPathRel(p, dir string) (err error)
- func (fd *FD) SetShaLike(v interfaces.MarklId) (err error)
- func (fd *FD) SetWithBlobWriterFactory(path string, blobStore interfaces.BlobWriterFactory) (err error)
- func (fd *FD) String() string
- type KeyerSha
- type MutableSet
- type Set
- type State
- type Std
Constants ¶
View Source
const ( StateUnknown = state(iota) StateFileInfo StateRead StateStored )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FD ¶
type FD struct {
// contains filtered or unexported fields
}
func MakeFromFileInfoWithDir ¶
func MakeFromFileInfoWithDir( fileInfo os.FileInfo, dir string, blobStore interfaces.BlobWriterFactory, ) (fd *FD, err error)
func MakeFromPath ¶
func MakeFromPath( baseDir string, path string, blobWriter interfaces.BlobWriterFactory, ) (fd *FD, err error)
func MakeFromPathAndDirEntry ¶
func MakeFromPathAndDirEntry( path string, dirEntry fs.DirEntry, blobWriter interfaces.BlobWriterFactory, ) (fd *FD, err error)
func (*FD) GetDigest ¶
func (fd *FD) GetDigest() interfaces.MarklId
func (*FD) Remove ¶
func (fd *FD) Remove(directoryLayout directory_layout.Mutable) (err error)
func (*FD) SetFileInfoWithDir ¶
func (*FD) SetFromFileInfoWithDir ¶
func (fd *FD) SetFromFileInfoWithDir( fileInfo os.FileInfo, dir string, blobStore interfaces.BlobWriterFactory, ) (err error)
func (*FD) SetFromPath ¶
func (fd *FD) SetFromPath( baseDir string, path string, blobStore interfaces.BlobWriterFactory, ) (err error)
func (*FD) SetShaLike ¶
func (fd *FD) SetShaLike(v interfaces.MarklId) (err error)
func (*FD) SetWithBlobWriterFactory ¶
func (fd *FD) SetWithBlobWriterFactory( path string, blobStore interfaces.BlobWriterFactory, ) (err error)
type KeyerSha ¶
type KeyerSha struct{}
type MutableSet ¶
type MutableSet = interfaces.SetMutable[*FD]
func MakeMutableSet ¶
func MakeMutableSet(ts ...*FD) MutableSet
func MakeMutableSetSha ¶
func MakeMutableSetSha() MutableSet
type State ¶
type State interface {
// contains filtered or unexported methods
}
Source Files
¶
- collections_set.go
- construction.go
- main.go
- state.go
- std.go
- util.go
Click to show internal directories.
Click to hide internal directories.