shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
exists
Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs
This function simply check if the path passed exists. You can specify what you want to take care of using the settings object
Params
- path*-String
The path you want to check
- settings{}TExistsSettings
Some settings for what you want to take care of
Return
- -Boolean
true if exists, false if not
Example
import { exists } from '@blackbyte/sugar/fs';
exists('/something/cool.txt'); // => trueSettings
- directorytrueBoolean
Specify if you want to take care of directories
- filetrueBoolean
Specify if you want to take care of files
- symlinktrueBoolean
Specify if you want to take care of symlinks
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space