Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Sep 22, 2022 · 3 comments

Comments

@LiuShaohan
Copy link

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
Copy link
Contributor

agsuy commented Oct 7, 2022

May you share a sample of command you are using?

Sorry for the late reply 🙏

@LiuShaohan
Copy link
Author

LiuShaohan commented Oct 9, 2022

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
Copy link
Contributor

agsuy commented Oct 13, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants