Here’s how to use exists() function.exist,file object
Description: Check whether there is a specified file or folder in HDFS and return a Boolean value. Syntax: hdfs_exists(hexist,hadoop