| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7a58157 commit 928166c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -633,9 +633,7 @@ the event. | |||
| 633 | 633 | The `fs.watch` API is not 100% consistent across platforms, and is | |
| 634 | 634 | unavailable in some situations. | |
| 635 | 635 | ||
| 636 | - The recursive option is currently supported on OS X and Windows. Only FSEvents | ||
| 637 | - supports this type of file watching so it is unlikely any additional platforms | ||
| 638 | - will be added soon. | ||
| 636 | + The recursive option is only supported on OS X and Windows. | ||
| 639 | 637 | ||
| 640 | 638 | #### Availability | |
| 641 | 639 | ||
@@ -662,11 +660,10 @@ less reliable. | |||
| 662 | 660 | ||
| 663 | 661 | <!--type=misc--> | |
| 664 | 662 | ||
| 665 | - Providing `filename` argument in the callback is not supported | ||
| 666 | - on every platform (currently it's only supported on Linux and Windows). Even | ||
| 667 | - on supported platforms `filename` is not always guaranteed to be provided. | ||
| 668 | - Therefore, don't assume that `filename` argument is always provided in the | ||
| 669 | - callback, and have some fallback logic if it is null. | ||
| 663 | + Providing `filename` argument in the callback is only supported on Linux and | ||
| 664 | + Windows. Even on supported platforms, `filename` is not always guaranteed to | ||
| 665 | + be provided. Therefore, don't assume that `filename` argument is always | ||
| 666 | + provided in the callback, and have some fallback logic if it is null. | ||
| 670 | 667 | ||
| 671 | 668 | fs.watch('somedir', function (event, filename) { | |
| 672 | 669 | console.log('event is: ' + event); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments