is_dir javascript code example
Example: check directory exists in php
<?php
$directory = "./videos/category/";
if (!file_exists($directory)) {
mkdir($directory, 0777, true);
}
?>
<?php
$directory = "./videos/category/";
if (!file_exists($directory)) {
mkdir($directory, 0777, true);
}
?>