Export function to validate if a value is a empty directories
- License:
- Source:
Example
import { isEmptyDirectory } from 'itee-validators' if( isEmptyDirectory( value ) ) { //... } else { //... }
Requires
Methods
-
<static> isEmptyDirectory(directoryPath)
-
Check if given directory path is an empty directory
Parameters:
Name Type Description directoryPath
string | Buffer | URL The directory path to check the emptiness Returns:
true if directory is empty, false otherwise- Type
- boolean
-
<static> isNotEmptyDirectory(directoryPath)
-
Check if given directory path is not an empty directory
Parameters:
Name Type Description directoryPath
string | Buffer | URL The directory path to check the emptiness Returns:
true if directory is not empty, false otherwise- Type
- boolean