def exists(hdfs_path, user=None):
hostname, port, path = split(hdfs_path, user=user)<EOL>fs = hdfs_fs.hdfs(hostname, port)<EOL>retval = fs.exists(path)<EOL>fs.close()<EOL>return retval<EOL>
Return :obj:`True` if ``hdfs_path`` exists in the default HDFS.