Export function to validate if a value is a valid directory path
- License:
- Source:
Example
import { isValidDirectoryPath } from 'itee-validators' if( isValidDirectoryPath( value ) ) { //... } else { //... }
Methods
-
<static> isInvalidDirectoryPath(data)
-
Check if given data is an invalid directory path
Parameters:
Name Type Description data
* The data to check against the directory path type Returns:
true if data is an invalid directory path, false otherwise- Type
- boolean
-
<static> isValidDirectoryPath(data)
-
Check if given data is a valid directory path
Parameters:
Name Type Description data
* The data to check against the directory path type Returns:
true if data is a valid directory path, false otherwise- Type
- boolean