Skip to content

Conversation

@Christian8491
Copy link
Contributor

This PR closes #1420

@GPUtester
Copy link
Collaborator

Please update the changelog in order to start CI tests.

View the gpuCI docs here.

@Christian8491 Christian8491 changed the title [WIP] Fix for predict file type when directory is provided as input [REVIEW] Fix for predict file type when directory is provided as input Mar 29, 2021

# if the input is a directory and files do not have extension we want to raise an error
if name_file[-1] == "/" and extension == "":
all_files = os.listdir(name_file)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something is wrong here. If we are creating a table from a folder, we will get the files listed out by the C++ layer. I cant remember where or how that happens, but the python layer cant be the one doing it. If you have an HDFS or S3 or GCS filesystem, python cant do os.listdir

@Christian8491 Christian8491 changed the title [REVIEW] Fix for predict file type when directory is provided as input [WIP] Fix for predict file type when directory is provided as input Apr 6, 2021
@wmalpica wmalpica changed the base branch from branch-0.19 to branch-0.20 April 12, 2021 18:43
@Christian8491 Christian8491 changed the title [WIP] Fix for predict file type when directory is provided as input [PAUSED] Fix for predict file type when directory is provided as input Apr 28, 2021
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 this pull request may close these issues.

[BUG] No longer predicts file type from extension

3 participants