You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is better than using fs.stat or fs.lstat, because change events don't need to be watched for like they do with those methods. Just need to use the existenceWatcher, I think.
The text was updated successfully, but these errors were encountered:
It returns the path type according to its on-disk representation.
Possible results include:
file
,directory
,symlink
,socket
,fifo
,characterDevice
,blockDevice
The best use case for this is a
switch
statement.This is better than using
fs.stat
orfs.lstat
, becausechange
events don't need to be watched for like they do with those methods. Just need to use theexistenceWatcher
, I think.The text was updated successfully, but these errors were encountered: