Is there an easy way to check that a file exists in the entire folder structure without having to cycle? (the use of os.walk
is necessary)
"if file exist in in my_dir and its sub directories"
for root, dirs, files in os.walk(my_dir):
# do stuff
else:
print("file does not exist")