Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java detect folder or file

File file = new File(path);

boolean exists =      file.exists();      // Check if the file exists
boolean isDirectory = file.isDirectory(); // Check if it's a directory
boolean isFile =      file.isFile();      // Check if it's a regular file
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #detect #folder #file
ADD COMMENT
Topic
Name
6+3 =