How to check if a file with specific names exists in current working directory in python? I tried following but gives error
import os
os.path.abspath(os.getcwd()).isfile('xyz.csv')
How to check if a file with specific names exists in current working directory in python? I tried following but gives error
import os
os.path.abspath(os.getcwd()).isfile('xyz.csv')
import os
os.path.exists(os.path.join(os.path.abspath(os.getcwd()), 'xyz.csv')