Documentation ¶
Index ¶
- func DeleteFile(nameNodeInstance *rpc.Client, remoteFilePath string, filename string) (deleteFileStatus bool)
- func DeletePath(nameNodeInstance *rpc.Client, remoteFilePath string) (deletePathStatus bool)
- func Get(nameNodeInstance *rpc.Client, remoteFilepath string, fileName string, ...) (getStatus bool)
- func List(nameNodeInstance *rpc.Client, remoteDirName string) (fileInfo map[string]uint64)
- func Mkdir(nameNodeInstance *rpc.Client, remoteFilePath string) (mkDir bool)
- func Put(nameNodeInstance *rpc.Client, sourcePath string, fileName string, ...) (putStatus bool)
- func ReName(nameNodeInstance *rpc.Client, renameSrcPath string, renameDestPath string) (reNameStatus bool)
- func ReNameFile(nameNodeInstance *rpc.Client, renameSrcFile string, renameDestFile string) (reNameStatus bool)
- func Stat(nameNodeInstance *rpc.Client, remoteFilePath string, fileName string) (filename string, filesize uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFile ¶
func DeleteFile(nameNodeInstance *rpc.Client, remoteFilePath string, filename string) (deleteFileStatus bool)
DeleteFile 删除远端文件
func DeletePath ¶
DeletePath 删除远端文件目录
func Get ¶
func Get(nameNodeInstance *rpc.Client, remoteFilepath string, fileName string, local_file_path string) (getStatus bool)
Get 从远端下载文件,返回结果:下载是否成功
func Put ¶
func Put(nameNodeInstance *rpc.Client, sourcePath string, fileName string, remotefilepath string) (putStatus bool)
Put 上传文件
func ReName ¶
func ReName(nameNodeInstance *rpc.Client, renameSrcPath string, renameDestPath string) (reNameStatus bool)
ReName 文件夹的重命名 返回重命名是否成功
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.