mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-02-02 21:27:15 +08:00
fix LS commnad list root folder error
This commit is contained in:
parent
118e521d63
commit
97a22812a2
@ -21,7 +21,6 @@ import (
|
|||||||
"github.com/tickstep/aliyunpan/cmder/cmdtable"
|
"github.com/tickstep/aliyunpan/cmder/cmdtable"
|
||||||
"github.com/tickstep/aliyunpan/internal/config"
|
"github.com/tickstep/aliyunpan/internal/config"
|
||||||
"github.com/tickstep/library-go/converter"
|
"github.com/tickstep/library-go/converter"
|
||||||
"github.com/tickstep/library-go/text"
|
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
@ -141,15 +140,6 @@ func RunLs(driveId, targetPath string, lsOptions *LsOptions,
|
|||||||
orderBy aliyunpan.FileOrderBy, orderDirection aliyunpan.FileOrderDirection) {
|
orderBy aliyunpan.FileOrderBy, orderDirection aliyunpan.FileOrderDirection) {
|
||||||
activeUser := config.Config.ActiveUser()
|
activeUser := config.Config.ActiveUser()
|
||||||
targetPath = activeUser.PathJoin(driveId, targetPath)
|
targetPath = activeUser.PathJoin(driveId, targetPath)
|
||||||
if targetPath[len(targetPath)-1] == '/' {
|
|
||||||
targetPath = text.Substr(targetPath, 0, len(targetPath)-1)
|
|
||||||
}
|
|
||||||
|
|
||||||
//targetPathInfo, err := activeUser.PanClient().FileInfoByPath(driveId, targetPath)
|
|
||||||
//if err != nil {
|
|
||||||
// fmt.Println(err)
|
|
||||||
// return
|
|
||||||
//}
|
|
||||||
|
|
||||||
files, err := matchPathByShellPattern(driveId, targetPath)
|
files, err := matchPathByShellPattern(driveId, targetPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user