fix: 文件列表只读当前目录下
This commit is contained in:
@@ -33,12 +33,12 @@ func FileList(path, neIp, search string) (string, []FileListRow, error) {
|
|||||||
rowStr := ""
|
rowStr := ""
|
||||||
|
|
||||||
// 发送命令
|
// 发送命令
|
||||||
searchStr := ""
|
searchStr := "*"
|
||||||
if search != "" {
|
if search != "" {
|
||||||
searchStr = search + "*"
|
searchStr = search + searchStr
|
||||||
}
|
}
|
||||||
pathStr := fmt.Sprintf("cd %s \n", path)
|
pathStr := fmt.Sprintf("cd %s \n", path)
|
||||||
cmdStr := fmt.Sprintf("ls -lht --time-style=+%%s %s \n", searchStr)
|
cmdStr := fmt.Sprintf("ls -lthd --time-style=+%%s %s \n", searchStr)
|
||||||
|
|
||||||
// 是否远程读取
|
// 是否远程读取
|
||||||
if neIp != "" {
|
if neIp != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user