Skip to content
Advertisement

I am unable to check the files available in the directory

I am trying to read the csv files in the current directory. In-order to do that, I want to check all the files present in my current directory. I have tried doing it with check_output function. However, i received this error and I’m unable to figure out how to deal with it. This is the code I have tried:

JavaScript

this is the error i have received:

JavaScript

Advertisement

Answer

You can get a list of all the files in the current directory by doing this:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement