Documentation
¶
Index ¶
- Constants
- Variables
- func Compress(ws *websocket.Conn, dir string, timeout time.Duration) (name string, names []string, e error)
- func Copy(ws *websocket.Conn, dir, srcDir string, timeout time.Duration) (names []string, e error)
- func Cut(ws *websocket.Conn, dir, srcDir string, timeout time.Duration) (names []string, e error)
- func Init(ms []configure.Mount) (e error)
- func Uncompress(ws *websocket.Conn, dir string, timeout time.Duration) (name string, e error)
- type FileInfo
- type FileSystem
- type Mount
Constants ¶
View Source
const ( // CmdError 錯誤 CmdError = iota + 1 // CmdHeart websocket 心跳防止瀏覽器 關閉不獲取 websocket CmdHeart // CmdProgress 更新進度 CmdProgress // CmdDone 操作完成 CmdDone // CmdInit 初始化 CmdInit // CmdYes 確認操作 CmdYes // CmdNo 取消操作 CmdNo // CmdExist 檔案已經存在 CmdExist // CmdYesAll 覆蓋全部 重複檔案 CmdYesAll // CmdSkip 跳過 重複檔案 CmdSkip // CmdSkipAll 跳過全部 重複檔案 CmdSkipAll )
Variables ¶
View Source
var Separator = string(filepath.Separator)
Separator .
Functions ¶
func Compress ¶
func Compress(ws *websocket.Conn, dir string, timeout time.Duration) (name string, names []string, e error)
Compress 執行 壓縮
Types ¶
type FileInfo ¶
type FileInfo struct { Name string `json:"name,omitempty"` Mode uint32 `json:"mode,omitempty"` Size int64 `json:"size,omitempty"` IsDir bool `json:"isDir,omitempty"` }
FileInfo 檔案信息
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
FileSystem .
func (*FileSystem) Push ¶
func (f *FileSystem) Push(name, root string, read, write, shared bool)
Push .
Click to show internal directories.
Click to hide internal directories.