Home > @rushstack/heft > IWatchFileSystem
IWatchFileSystem interface
Interface contract for heft plugins to use the WatchFileSystemAdapter
Signature:
export interface IWatchFileSystem
Methods
Method | Description |
|---|---|
Tells the adapter to track the specified file (or folder) as used. Returns an object containing data about the state of said file (or folder). Uses synchronous API. | |
Tells the adapter to track the specified file (or folder) as used. Returns an object containing data about the state of said file (or folder). Uses promise-based API. | |
Asynchronous lstat. Watches the file for changes, or if it does not exist, watches to see if it is created. | |
Synchronous lstat. Watches the file for changes, or if it does not exist, watches to see if it is created. | |
Asynchronous readdir. Watches the directory for changes. | |
Synchronous readdir. Watches the directory for changes. | |
Asynchronous stat. Watches the file for changes, or if it does not exist, watches to see if it is created. | |
Synchronous stat. Watches the file for changes, or if it does not exist, watches to see if it is created. |