LS method on subdirectory gives an error
` rclone = pyclone.PyClone() print("Remotes: {}".format(rclone.remotes()))
for entry in rclone.ls(S3_REMOTE, "infra-files/metadata/"):
if entry.get("IsDir", False):
print("{}".format(entry.get("Name", "UNK")))
`
gives the following error
Traceback (most recent call last): File "/home/seitz/.cache/bazel/_bazel_seitz/bf09bc384db6c6aeebf7097da9c0968f/execroot/__main__/bazel-out/k8-fastbuild/bin/work/clusterops/repong/repong.runfiles/__main__/work/clusterops/repong/repong-wrapper.py", line 42, in <module> exec(code, module.__dict__) File "/home/seitz/.cache/bazel/_bazel_seitz/bf09bc384db6c6aeebf7097da9c0968f/execroot/__main__/bazel-out/k8-fastbuild/bin/work/clusterops/repong/repong.runfiles/__main__/work/clusterops/repong/cli/repong.py", line 29, in <module> main(sys.argv) File "/home/seitz/.cache/bazel/_bazel_seitz/bf09bc384db6c6aeebf7097da9c0968f/execroot/__main__/bazel-out/k8-fastbuild/bin/work/clusterops/repong/repong.runfiles/__main__/work/clusterops/repong/cli/repong.py", line 20, in main for entry in rclone.ls(S3_REMOTE, "test-infra-files/metadata/"): File "/home/seitz/.cache/bazel/_bazel_seitz/bf09bc384db6c6aeebf7097da9c0968f/execroot/__main__/bazel-out/k8-fastbuild/bin/work/clusterops/repong/repong.runfiles/__main__/pip/pyclone/pyclone-cpython-38/lib/pyclone/pyclone.py", line 642, in ls r = json.loads( output ) File "json/__init__.py", line 357, in loads File "json/decoder.py", line 337, in decode File "json/decoder.py", line 353, in raw_decode json.decoder.JSONDecodeError: Expecting ',' delimiter: line 2 column 5 (char 7)
Rclone version 1.54.1