fix rclone list without extra ns
parent
bb1d9491c4
commit
b4c455fba3
|
|
@ -92,8 +92,10 @@ func (rc *RClone) Close() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (rc *RClone) List(ns []string, limits ...string) ([]string, error) {
|
func (rc *RClone) List(ns []string, limits ...string) ([]string, error) {
|
||||||
namespace := path.Join(resolveNamespace(ns))
|
namespace := rc.ns
|
||||||
namespace = path.Join(rc.ns, namespace)
|
if len(ns) > 0 {
|
||||||
|
namespace = path.Join(rc.ns, resolveNamespace(ns))
|
||||||
|
}
|
||||||
limits = resolveLimits(limits)
|
limits = resolveLimits(limits)
|
||||||
|
|
||||||
f, err := fs.NewFs(namespace)
|
f, err := fs.NewFs(namespace)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue