* Gets stats without following symlinks asynchronously. * @param {string} filePath The path to stat * @param {object|Function} [options] Options or callback * @param {Function} [callback] Callback (err, stats)
(filePath, options, callback)
| 696 | * @param {Function} [callback] Callback (err, stats) |
| 697 | */ |
| 698 | lstat(filePath, options, callback) { |
| 699 | if (typeof options === 'function') { |
| 700 | callback = options; |
| 701 | options = undefined; |
| 702 | } |
| 703 | |
| 704 | this[kProvider].lstat(this.#toProviderPath(filePath), options) |
| 705 | .then((stats) => callback(null, stats), (err) => callback(err)); |
| 706 | } |
| 707 | |
| 708 | /** |
| 709 | * Reads directory contents asynchronously. |
no test coverage detected