jcabi-github icon indicating copy to clipboard operation
jcabi-github copied to clipboard

Anyway to detect whether Content is folder or file

Open zjffdu opened this issue 3 years ago • 1 comments

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

zjffdu avatar Jul 25 '22 14:07 zjffdu

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

yegor256 avatar Sep 09 '22 06:09 yegor256