How can i determine the file type?
I have to do these actions:
- I have tor read all files from a directory and check them
2.after checking i have to read only the excel files.
I have tried with the code…
initial_dir = ["./upload_dir"]
for dir in initial_dir
files_list << path
read the file
error is “Exception: Permission denied - ./upload_dir”
probably, the code also try to process the “…/” and “./”
So how can i check the file type.
please help me waiting for ur response