boolean exists(String name) throws IOException {
   if (fs == null) {
     fs = createFs();
   }
   return fs.exists(new Path(name));
 }
Check if the directory or file exists
@throws IOException
hplsql/src/main/java/org/apache/hive/hplsql/File.java