I want to create a directory if it does\'nt exist already.
Is using is_dir enough for that purpose?
is_dir
if ( !is_dir( $dir ) ) { mkdir(
This is an old, but still topical question. Just test with the is_dir() or file_exists() function for the presence of the . or .. file in the directory under test. Each directory must contain these files:
is_dir()
file_exists()
.
..
is_dir("path_to_directory/.");