Open LiuShaohan opened 1 year ago
May you share a sample of command you are using?
Sorry for the late reply 🙏
import datetime import os import json import time
strs = []
pp = "%s,%s\n"
def list_file(id: str, keyWord: str) -> None: command = "ardrive list-folder --parent-folder-id %s" d = os.popen(command % id) data = json.load(d) for f in data: if f['entityType'] == "file": if (keyWord == "") or (keyWord in f['path']): strs.append(pp % (f['path'], f['dataTxId'])) print(pp % (f['path'], f['dataTxId'])) continue elif f['entityType'] == "folder": list_file(f['folderId'], keyWord)
list_file("My folderId", keyWord="") # Root
I am sorry but I do not follow what you are trying to accomplish. May you kindly explain with detail what are you trying to do and why do you think it is a CLI issue?
Is there any reason for using the CLI instead of https://github.com/ardriveapp/ardrive-core-js ? If your issue is regarding how-to use the app, I suggest to use our official support channel: https://ardrive.zendesk.com/hc/en-us
Thanks in advance.
why I update the file path use the ardrive App, but when I use CLI commend get json data, the path is not update ?