CheckFileExists
check_file_exists(file_path)
Expand source code
check_file_exists(file_path):"""Description-----------Method to check if file exists or not.Args----file_path: path of the file.Returns-------true: if file exists.false: if file doesn't exist.Usages------if check_file_exists(file_path):#DoSometing"""return os.path.isfile(file_path)
Description
Method to check if file exists or not.
Arguments
file_path
: path of the file.
Returns
true
: if file exists.false
: if file doesn't exist.
Usages
if check_file_exists(file_path):#DoSometing