I am using Eclipse and jdk1.7. I am making a basic program using file handling, in which an output directory inside the directory is to be made. But when I run the program,
its obj.mkdirs()
obj.mkdirs()
have a look to this:
File f = new File("non_existing_dir/someDir"); System.out.println(f.mkdir()); System.out.println(f.mkdirs());
The first print won't create a directory and returns false but the second does and returns true
false
true