函数定义#
CopyToRefLocal#
详细描述#
CopyToRefLocal(srcFs filesys_interface.FileSystem, dest string) (*RelLocalFs, error)
| 参数名 | 参数类型 | 参数解释 | 
|---|
| srcFs | filesys_interface.FileSystem |  | 
| dest | string |  | 
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 | 
|---|
| r1 | *RelLocalFs |  | 
| r2 | error |  | 
CopyToTemporary#
详细描述#
CopyToTemporary(srcFs filesys_interface.FileSystem) *RelLocalFs
| 参数名 | 参数类型 | 参数解释 | 
|---|
| srcFs | filesys_interface.FileSystem |  | 
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 | 
|---|
| r1 | *RelLocalFs |  | 
Glance#
详细描述#
Glance is for quickly viewing the basic info in fs
Glance(localfile any) string
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 | 
|---|
| r1 | string |  | 
Recursive#
详细描述#
Recursive recursively walk through the file system
raw: the root path
opts: options
return: error
Example:
err := filesys.Recursive( //
    "testdata",    filesys.dir(["cc", "dd"], filesys.onFileStat((name, info) => {})),
)
Recursive(raw string, opts ...Option) error
| 参数名 | 参数类型 | 参数解释 | 
|---|
| raw | string |  | 
| opts | ...Option |  | 
返回值#
dir#
详细描述#
dir(globDir string, opts ...Option) Option
| 参数名 | 参数类型 | 参数解释 | 
|---|
| globDir | string |  | 
| opts | ...Option |  | 
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 | 
|---|
| r1 | Option |  | 
onDirStat#
详细描述#
onDirStat will be called when the walker met one directory.
onDirStat(h func(pathname string, info os.FileInfo)) Option
| 参数名 | 参数类型 | 参数解释 | 
|---|
| h | func(pathname string, info os.FileInfo) |  | 
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 | 
|---|
| r1 | Option |  | 
onFS#
详细描述#
onFS(f fi.FileSystem) Option
| 参数名 | 参数类型 | 参数解释 | 
|---|
| f | fi.FileSystem |  | 
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 | 
|---|
| r1 | Option |  | 
onFileStat#
详细描述#
onFileStat will be called when the walker met one file.
onFileStat(h func(pathname string, info os.FileInfo)) Option
| 参数名 | 参数类型 | 参数解释 | 
|---|
| h | func(pathname string, info os.FileInfo) |  | 
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 | 
|---|
| r1 | Option |  | 
onFileStatEx#
详细描述#
onFileStatEx will be called when the walker met one file and control stop
onFileStatEx(h func(pathname string, info os.FileInfo, stop func())) Option
| 参数名 | 参数类型 | 参数解释 | 
|---|
| h | func(pathname string, info os.FileInfo, stop func()) |  | 
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 | 
|---|
| r1 | Option |  | 
onReady#
详细描述#
onReady will be called when the walker is ready to start walking.
onReady(h func(name string, isDir bool)) Option
| 参数名 | 参数类型 | 参数解释 | 
|---|
| h | func(name string, isDir bool) |  | 
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 | 
|---|
| r1 | Option |  | 
onStat#
详细描述#
onStat will be called when the walker met one file description.
onStat(h func(isDir bool, pathname string, info os.FileInfo)) Option
| 参数名 | 参数类型 | 参数解释 | 
|---|
| h | func(isDir bool, pathname string, info os.FileInfo) |  | 
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 | 
|---|
| r1 | Option |  | 
onStatEx#
详细描述#
onStatEx will be called when the walker met one file description.
onStatEx(h func(isDir bool, pathname string, info os.FileInfo, stop func())) Option
| 参数名 | 参数类型 | 参数解释 | 
|---|
| h | func(isDir bool, pathname string, info os.FileInfo, stop func()) |  | 
返回值#
| 返回值(顺序) | 返回值类型 | 返回值解释 | 
|---|
| r1 | Option |  |