YJiWei

Results 3 issues of YJiWei

[root@myserver files]# which rm alias rm='trash' /usr/bin/trash [root@myserver rfiles]# rm -rf /* trash: cannot trash directory '/boot' **Running rm-rf /* directly allows you to delete some system files, and you...

trash-put

//uploadDirectory 遍历上传远程文件夹 func (sftpHandler *SftpHandler) uploadDirectory(localPath string, remotePath string) { //打开本地文件夹流 localFiles, err := ioutil.ReadDir(localPath) if err != nil { log.Fatal("路径错误 ", err) } //先创建最外层文件夹 sftpHandler.SftpClient.Mkdir(remotePath) //遍历文件夹内容 for _, backupDir...