Home > @rushstack/heft > IWatchFileSystem > getStateAndTrack
IWatchFileSystem.getStateAndTrack() method
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.
Signature:
getStateAndTrack(filePath: string): IWatchedFileState;
Parameters
Parameter | Type | Description |
|---|---|---|
filePath | string |
Returns: