Kaggle / kaggle-api

Official Kaggle API
Apache License 2.0
6.28k stars 1.1k forks source link

dataset_view() does not return all files #234

Open jiahao opened 4 years ago

jiahao commented 4 years ago

In version 1.5.6, the api.dataset_view() function does not return the names of any files that are not in the local root directory.

Example:

>>> import kaggle #v1.5.6
>>> dataset_name = '4quant/depth-generation-lightfield-imaging'
>>> api = kaggle.KaggleApi()
>>> api.authenticate()
>>> dataset = api.dataset_view(dataset_name)
>>> dataset.files
[depth_training_data.npz]

An inspection of 4quant/depth-generation-lightfield-imaging on kaggle.com shows that there are many files contained in subdirectories (e.g. 3d_scenes/3d_scenes/img00032.txt) that are not returned by the API call.

skabbit commented 4 years ago

Got the same error for the competition files list.