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

Need to fetch parent folder of fileid #9

Closed
DailenG opened this issue Sep 25, 2020 · 2 comments · Fixed by #50
Closed

Need to fetch parent folder of fileid #9

DailenG opened this issue Sep 25, 2020 · 2 comments · Fixed by #50

Comments

@DailenG
Copy link

DailenG commented Sep 25, 2020

I'm writing a script to categorize downloaded items, but to properly do so I need the parent folder info. Running kaput files obviously gets items whose parent_id equals the designated id, but getting the parent_id of the designated id would be great. Maybe a flag "--self" that could output the data for the ID instead of the contents?

My alternative has been to loop through folders until it finds one with that ID to determine the parent folder ID.

@davidchalifoux
Copy link
Owner

From my understanding, if kaput files [ID] is a folder, you want the details of the folder itself and not the contents?

I could probably add this in this weekend for ya.

@davidchalifoux davidchalifoux linked a pull request Jan 24, 2024 that will close this issue
@davidchalifoux
Copy link
Owner

@DailenG I added a --self flag to the files list command, give it a try and let me know if that works for you

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

Successfully merging a pull request may close this issue.

2 participants