public static boolean isValidFolderPath ( Path path ) { if ( path == null ) { return false ; } File f = path . toFile ( ) ; return path . toString ( ) . isEmpty ( ) || ( f . isDirectory ( ) && f . canWrite ( ) ) ; }
Checks is the parameter path a valid for saving fixed file