davidchalifoux / kaput-cli

The unofficial CLI client for Put.io - Kaput lets you manage your Put.io account from the comfort of your terminal!
https://kaput.sh/
MIT License
68 stars 7 forks source link

Need to fetch parent folder of fileid #9

Closed DailenG closed 7 months ago

DailenG commented 3 years ago

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 commented 3 years ago

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 commented 7 months ago

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