question: public static boolean isFileExists ( final String path ) { if ( TextUtils . isEmpty ( path ) ) { Log . e ( FileUtils . class , "isFileExists(): Null or Empty parameter given" ) ; return false ; } final File fileToCheck = new File ( path ) ; return fileToCheck . exists ( ) && ! fileToCheck . isDirectory ( ) ; }
target:  Check if given path is a File and if it exists