How to check if a file is exist in data folder by code?

f = this.dataFile('DoIExist.txt')
filePath, exist = f.path, f.isFile()
print filePath, exist
2 Likes