stats.isDirectory()


    如果 <fs.Stats> 对象描述文件系统目录,则返回 true

    Returns true if the <fs.Stats> object describes a file system directory.

    If the <fs.Stats> object was obtained from fs.lstat(), this method will always return false. This is because fs.lstat() returns information about a symbolic link itself and not the path it resolves to.