Module: sources/file-system/directories/isDirectoryPath

Export function to validate if a value is a directories path
Author:
License:
Source:

Example

import { isDirectoryPath } from 'itee-validators'

if( isDirectoryPath( value ) ) {
    //...
} else {
    //...
}

Requires

Methods


<static> isDirectoryPath(path)

Check if given path is a directory path
Parameters:
Name Type Description
path string | Buffer | URL The data to check against the directory path type
Source:
Returns:
true if path is a directory path, false otherwise
Type
boolean

<static> isNotDirectoryPath(path)

Check if given path is a not directory path
Parameters:
Name Type Description
path string | Buffer | URL The data to check against the directory path type
Source:
Returns:
true if path is a not directory path, false otherwise
Type
boolean