fix rclone list without extra ns
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user