Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File file = new File(path);
- file.exists(); // First, make sure the path exists
- file.isDirectory(); // This will tell you if it is a directory
- file.isFile();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement