Documentation
¶
Index ¶
- func GetPosixFS() afs.FS
- func GetWindowsFS() afs.FS
- type CommonFileSystem
- type CommonFileSystemCore
- func (inst *CommonFileSystemCore) ElementsToPath(elements []string, prefix string, gap string) string
- func (inst *CommonFileSystemCore) New(path string) afs.Path
- func (inst *CommonFileSystemCore) NormalizePathElements(src []string) ([]string, error)
- func (inst *CommonFileSystemCore) PathToElements(path string) []string
- func (inst *CommonFileSystemCore) PrepareOptions(p afs.Path, have *afs.Options, want afs.WantOption) *afs.Options
- func (inst *CommonFileSystemCore) SetDefaultOptionsHandler(h afs.OptionsHandlerFunc) error
- type PlatformFileSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommonFileSystem ¶
type CommonFileSystem interface { PathToElements(path string) []string ElementsToPath(elements []string, prefix string, sep string) string NormalizePathElements(elements []string) ([]string, error) PrepareOptions(path afs.Path, have *afs.Options, want afs.WantOption) *afs.Options SetDefaultOptionsHandler(fn afs.OptionsHandlerFunc) error New(path string) afs.Path }
CommonFileSystem 所有平台共享的核心结构
type CommonFileSystemCore ¶
type CommonFileSystemCore struct {
// contains filtered or unexported fields
}
CommonFileSystemCore 所有平台共享的核心结构
func (*CommonFileSystemCore) ElementsToPath ¶
func (inst *CommonFileSystemCore) ElementsToPath(elements []string, prefix string, gap string) string
ElementsToPath 把文件名元素拼接成路径
func (*CommonFileSystemCore) New ¶ added in v0.9.8
func (inst *CommonFileSystemCore) New(path string) afs.Path
New ...
func (*CommonFileSystemCore) NormalizePathElements ¶
func (inst *CommonFileSystemCore) NormalizePathElements(src []string) ([]string, error)
NormalizePathElements 标准化
func (*CommonFileSystemCore) PathToElements ¶
func (inst *CommonFileSystemCore) PathToElements(path string) []string
PathToElements 把路径拆分成文件名元素
func (*CommonFileSystemCore) PrepareOptions ¶
func (inst *CommonFileSystemCore) PrepareOptions(p afs.Path, have *afs.Options, want afs.WantOption) *afs.Options
PrepareOptions ...
func (*CommonFileSystemCore) SetDefaultOptionsHandler ¶
func (inst *CommonFileSystemCore) SetDefaultOptionsHandler(h afs.OptionsHandlerFunc) error
SetDefaultOptionsHandler ...
Source Files
¶
Click to show internal directories.
Click to hide internal directories.