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

Anyway to detect whether Content is folder or file #1566

Open
zjffdu opened this issue Jul 25, 2022 · 1 comment
Open

Anyway to detect whether Content is folder or file #1566

zjffdu opened this issue Jul 25, 2022 · 1 comment

Comments

@zjffdu
Copy link

zjffdu commented Jul 25, 2022

Seems I can use Content#json to detect whether it is folder because Content#json will throw exception when it is a folder. But it doesn't seems a good api for that, does anyone know is there any more intuitive api for that? Thanks

@yegor256
Copy link
Member

yegor256 commented Sep 9, 2022

@zjffdu if this checking is available through GitHub API, we can have it here too. Otherwise, sorry...

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