ardriveapp / ardrive-cli

The ArDrive Command Line Interface (CLI) is a Node.js application for terminal-based ArDrive workflows. It also offers utility operations for securely interacting with Arweave wallets and inspecting various Arweave blockchain conditions.
GNU Affero General Public License v3.0
78 stars 14 forks source link

why I Change the file path use the ardrive App, but when I use CLI commend get json data, the path is not update ? #330

Open LiuShaohan opened 1 year ago

LiuShaohan commented 1 year ago

why I update the file path use the ardrive App, but when I use CLI commend get json data, the path is not update ?

agsuy commented 1 year ago

May you share a sample of command you are using?

Sorry for the late reply 🙏

LiuShaohan commented 1 year ago

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

agsuy commented 1 year ago

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.