1. Introduction
The mkdir() method creates the directory with the given name.
2. Method signature
Parameters:
- method does not take any parameter
Returns
- true - if the directory was created; false otherwise
Throws
- SecurityException - when we do not have access to the file or directory
3. Examples
3.1. Code that creates ttt
directory in /tmp
folder
The output:
4. Conclusion
In this article, we focused on mkdir()
method from Java IO, which created directory with the specified name and returns true if the directory was successfully created.
{{ 'Comments (%count%)' | trans {count:count} }}
{{ 'Comments are closed.' | trans }}