Implemented by and
1. The object provides information about a file.
Objects returned from (), (), and () and their synchronous versions are all this type. If the bigint in options passed into these functions is true, the value will be of the bigint type instead of the number type.
like:
Stats { dev: 2114, ino: 48064969, mode: 33188, nlink: 1, uid: 85, gid: 100, rdev: 0, size: 527, blksize: 4096, blocks: 8, atimeMs: 1318289051000.1, mtimeMs: 1318289051000.1, ctimeMs: 1318289051000.1, birthtimeMs: 1318289051000.1, atime: Mon, 10 Oct 2011 23:24:11 GMT, mtime: Mon, 10 Oct 2011 23:24:11 GMT, ctime: Mon, 10 Oct 2011 23:24:11 GMT, birthtime: Mon, 10 Oct 2011 23:24:11 GMT }
Returns true if the object represents a file system directory.
3. How to use
var fs = require('fs'); var stat = ('File Path'); var is_direc = ();// true || false Determine if it is a folder
The above example explanation of node's use of the fs module to determine whether a file is a folder is all the content I have shared with you. I hope you can give you a reference and I hope you can support me more.