pub repository
mirror.p-hatan.irwatcher
1.1.3A file system watcher. It monitors changes to contents of directories and sends notifications when files have been added, removed, or modified.
Readme
Build Status pub package package publisher
A file system watcher.
What's this?
package:watcher monitors changes to contents of directories and sends
notifications when files have been added, removed, or modified.
Changelog
1.1.3
- Improve handling of
FileSystemException: Directory watcher closed unexpectedlyon Windows. The watcher was already attempting to restart after this error and resume sending events. But, the restart would sometimes silently fail. Now, it is more reliable. - Improving handling of directories that are created then immediately deleted on
Windows. Previously, that could cause a
PathNotfoundExceptionto be thrown.
1.1.2
- Fix a bug on Windows where a file creation event could be reported twice when creating a file recursively in a non-existent directory.
1.1.1
- Ensure
PollingFileWatcher.readycompletes for files that do not exist. - Require Dart SDK
^3.1.0 - Move to
dart-lang/toolsmonorepo.
1.1.0
- Require Dart SDK >= 3.0.0
- Remove usage of redundant ConstructableFileSystemEvent classes.
1.0.3-dev
- Require Dart SDK >= 2.19
1.0.2
- Require Dart SDK >= 2.14
- Ensure
DirectoryWatcher.readycompletes even when errors occur that close the watcher. - Add markdown badges to the readme.
1.0.1
- Drop package:pedantic and use package:lints instead.
1.0.0
- Require Dart SDK >= 2.12
- Add the ability to create custom Watcher types for specific file paths.
0.9.7+15
- Fix a bug on Mac where modifying a directory with a path exactly matching a prefix of a modified file would suppress change events for that file.
0.9.7+14
- Prepare for breaking change in SDK where modified times for not found files becomes meaningless instead of null.
0.9.7+13
- Catch & forward
FileSystemExceptionfrom unexpectedly closed file watchers on windows; the watcher will also be automatically restarted when this occurs.
0.9.7+12
- Catch
FileSystemExceptionduringexistsSync()on Windows. - Internal cleanup.
0.9.7+11
- Fix an analysis hint.
0.9.7+10
- Set max SDK version to
<3.0.0, and adjust other dependencies.
0.9.7+9
- Internal changes only.
0.9.7+8
- Fix Dart 2.0 type issues on Mac and Windows.
0.9.7+7
-
Updates to support Dart 2.0 core library changes (wave 2.2). See issue 31847 for details.
0.9.7+6
- Internal changes only, namely removing dep on scheduled test.
0.9.7+5
- Fix an analysis warning.
0.9.7+4
- Declare support for
async2.0.0.
0.9.7+3
- Fix a crashing bug on Linux.
0.9.7+2
- Narrow the constraint on
asyncto reflect the APIs this package is actually using.
0.9.7+1
- Fix all strong-mode warnings.
0.9.7
- Fix a bug in
FileWatcherwhere events could be added after watchers were closed.
0.9.6
-
Add a
Watcherinterface that encompasses watching both files and directories. -
Add
FileWatcherandPollingFileWatcherclasses for watching changes to individual files. -
Deprecate
DirectoryWatcher.directory. UseDirectoryWatcher.pathinstead.
0.9.5
- Fix bugs where events could be added after watchers were closed.
0.9.4
- Treat add events for known files as modifications instead of discarding them on Mac OS.
0.9.3
-
Improved support for Windows via
WindowsDirectoryWatcher. -
Simplified
PollingDirectoryWatcher. -
Fixed bugs in
MacOSDirectoryWatcher
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add watcherpubspec.yaml
name: watcher
version: 1.1.3
description: >-
A file system watcher. It monitors changes to contents of directories and
sends notifications when files have been added, removed, or modified.
repository: https://github.com/dart-lang/tools/tree/main/pkgs/watcher
issue_tracker: https://github.com/dart-lang/tools/labels/package%3Awatcher
environment:
sdk: ^3.1.0
dependencies:
async: ^2.5.0
path: ^1.8.0
dev_dependencies:
benchmark_harness: ^2.0.0
dart_flutter_team_lints: ^3.0.0
test: ^1.16.6
test_descriptor: ^2.0.0
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.6.5 | 2013-07-16T00:20:01.708490Z | Download | 0179c7989deedd98f8dab8c306ac3096f52ce317a408c1e49d063d34ffbccadb |
| 0.6.6 | 2013-07-17T19:42:00.404880Z | Download | 26fd2760e09003983f8af0f66f518e28dea1a1721e5b3ffe8463a73af6044900 |
| 0.6.8 | 2013-07-19T20:55:54.058130Z | Download | 60c32ba1da1caea6cb28cee0710da4f985422b930a13210cf5b5e57042f44e9a |
| 0.6.9 | 2013-07-22T15:14:33.415300Z | Download | 004bcd7cd65f455f238af07739f1dd89e5bafba1a4e58fa30737dad49c627555 |
| 0.6.9+2 | 2013-07-24T03:58:57.975530Z | Download | e1f941f71e5fdc649453f0ce57b2bc34ce4a9ffe1d8468d4880979176f8ba610 |
| 0.6.11 | 2013-07-25T05:10:01.254340Z | Download | 31bed29873325d806c847c56bbd9a2d1362a4acb4b6055a468e14917f0afc77e |
| 0.6.12 | 2013-07-26T20:06:16.358730Z | Download | 9cfeea14c63cd2ce3a04283ef31293ed19b1105d6d0e7e6851556e741315a3d5 |
| 0.6.13 | 2013-07-30T21:56:24.227170Z | Download | 9c8dd54ee62c831d7291a242d6400decd0ca9bc513b7558644f90c68b8c47c30 |
| 0.6.14 | 2013-08-02T16:25:18.855300Z | Download | 917a02ddcb010d6c19ab75ebf88ed0fac207d646dc2f156eec942f80ab7ea0c2 |
| 0.6.15+2 | 2013-08-05T22:50:04.035240Z | Download | e0a13b994ecaf95add799051a572c3bb6fe589d7c9f6b26a3cee142865395492 |
| 0.6.15+3 | 2013-08-06T20:13:13.149200Z | Download | ef130ac4e0d98666ebc1e9d76758f021c87e7450477614732440bad4f486f65f |
| 0.6.17 | 2013-08-10T17:35:42.950740Z | Download | 6c00eceecce8a6f91ca209895fdddeb3aff00416b4daaf57f92cba7bdf88f9b7 |
| 0.6.17+2 | 2013-08-12T22:22:09.928100Z | Download | a5456a1a8896623b42b4b15e97e84f3a6ee33d4ef02f3c2c2fa3506c8c5fc495 |
| 0.6.19 | 2013-08-19T16:11:12.740500Z | Download | 5b5d354b509869d3fbbfc23315b4a14852290377c6e252f41b4f1062f40f896d |
| 0.6.20+1 | 2013-08-22T18:19:34.825990Z | Download | 3b9c611588721d2a13432b691a11f03610798960210a69508bc78116322d1dd7 |
| 0.6.21+3 | 2013-08-26T17:43:14.433740Z | Download | 33a3d0f208002430ea9e68156002cd9203e00eae60389cb8da91ea6daa6c7c3e |
| 0.7.0 | 2013-08-28T19:29:20.803280Z | Download | 84e34782f197d4018d9ceee429b3482c45469ba096ee21c096c43cc372434209 |
| 0.7.1 | 2013-09-03T15:52:35.435880Z | Download | 9b125d60f8d58fa3adf6e98365d5c47670106ab1e2200e4c36d530bcd96a786a |
| 0.7.2 | 2013-09-06T15:51:43.179280Z | Download | c7096e607500017a2dcaa83f37b31c618102fe72ab20df7393bbf9483fcad5fa |
| 0.7.2+1 | 2013-09-08T15:47:39.622010Z | Download | 6dc6940f7d81171db53b1fe071183e51b021b0e96c3a2b6d3b9a521bb0bf8aba |
| 0.7.3+1 | 2013-09-16T15:44:22.061630Z | Download | f081218f0d1f023582efb9273b463fa697cc0e3e045c3cdebc4d4895b5cc060d |
| 0.7.4 | 2013-09-18T03:04:07.337960Z | Download | 3ee463d069c22ba63e996c043383fa709ac4d00f2be74d1eb7a75635a78d14df |
| 0.7.5 | 2013-09-21T00:42:08.838790Z | Download | fd8e0451346b4fe466d52febf43c265baa1db81b0a8861d555b66f33ab626330 |
| 0.7.6 | 2013-09-27T14:57:55.246280Z | Download | c3e81216b6842bc06cd392062a4f35cd3c6d9528e5429ed75605a5d210017cfd |
| 0.7.6+4 | 2013-10-01T23:49:01.983140Z | Download | 31f39dd6bdf5ecd2dd51048d40ba59b7079962a672a93cf462c4d36b7e1ea783 |
| 0.8.0 | 2013-10-03T16:27:47.147770Z | Download | c78673ca74e14dc786fbeb51b4f14bd8d14f0d1fe9628059b6d08c71108ecefe |
| 0.8.1 | 2013-10-04T21:54:38.782700Z | Download | ad69433260b77ef10e88a49857ba0bd5defeb9adad40d31ca5e71d1ab59ca5d5 |
| 0.8.2 | 2013-10-14T21:44:08.925580Z | Download | 053a36c1916fb305dc9a378087afbb3a2fef550198174d164171c39661d83970 |
| 0.8.3 | 2013-10-17T16:00:48.038020Z | Download | a24333bedf49b088e400e137ef8fd723ffd2e966bb0795fc44f3c935cf90d154 |
| 0.8.4 | 2013-10-19T21:08:57.606200Z | Download | 3994f79077b507ababcd3280290dd9312cc062dbbf5a4383dc6ab82773494d98 |
| 0.8.5 | 2013-10-21T15:50:38.870750Z | Download | 2a39877b3e19875e79b3f143243461914f15a4a4b399003aa13fe7488b888111 |
| 0.8.6 | 2013-10-24T08:19:21.992790Z | Download | 8145655983eb759fee92ce520891063778f0f1da87832dbe87c975ccf4c706f9 |
| 0.8.7 | 2013-10-28T14:33:52.280090Z | Download | dd0537e908c009d8623132e14f6e33bb752cb533ba0c611d842741a27dee6fbd |
| 0.8.8 | 2013-10-30T03:29:37.333850Z | Download | e994ffb25733099f0bc35e16b784c6499794faa179ae3448ab990fc4cea39725 |
| 0.8.9 | 2013-10-31T15:16:00.557890Z | Download | f4edaca497688b3b0d2af37d2c680f7f306b1489ce9d1be48f5866d835a57071 |
| 0.8.10 | 2013-11-01T19:23:24.485280Z | Download | a3e3cd210930c4c790ea992385cc9f17f2b9fff6307cbd7d5b7e0de57dc1933d |
| 0.8.10+3 | 2013-11-04T16:49:12.158470Z | Download | d18a01ef6d6d0b84c930cbb0ac9fc53dab9be4afa05af6d8461d28053b5754cb |
| 0.8.10+4 | 2013-11-05T16:05:27.939160Z | Download | 1d11d434524faeea6868a7900ab51f720916ec29f3d6b0c7456c18f1b7f444ae |
| 0.9.0 | 2013-11-06T19:31:47.012570Z | Download | 9e83861b754c7d215dde6fa68244bcabff421236ffb92289aded281cf7431749 |
| 0.9.1 | 2013-12-09T20:54:24.616750Z | Download | 9980bf28971a96c8fa746eb7ce8bd87663ad2392e15e78f47348c96ea0dd2077 |
| 0.9.2 | 2013-12-10T00:30:59.434850Z | Download | 021f1d7e181b4b77cdf424e7de0d1c66c381c5152bb5b88135d1387e99d2404c |
| 0.9.3-dev | 2014-08-04T16:07:28.373470Z | Download | dc7ae02ad885f47dcc2ea247e901eab2b75db6f355c5d9cd28f0c602080d551f |
| 0.9.3 | 2014-08-04T16:10:38.002110Z | Download | a9aa3ab4fa25241527f1fd10183b1a86156d6363ebb57cc83d2bd8c0cf54ad1a |
| 0.9.4 | 2015-01-22T17:56:57.623190Z | Download | 7b998d68d957121d6f3726e3ea7fc94acd9cf44ae2cc643d7f7e30ac6c892050 |
| 0.9.5 | 2015-03-10T19:49:39.189770Z | Download | 923abc580f32a1eb170420104e97904fb46b7529ae6eb9be5be7e277d0119a20 |
| 0.9.6 | 2015-06-12T23:53:17.681Z | Download | 4b80ec2b204e92280a51207feda4274d923bdeebced23c4ef8afc9a6f72ddc1b |
| 0.9.7 | 2015-07-16T23:26:07.467Z | Download | f5928ad56735ffb7babee523d27a313272b3b43e64d76aae68dd6280430b48c4 |
| 0.9.7+2 | 2016-05-03T22:30:04.598Z | Download | eea968edba5e9448258df482ccbd5af2274d9a182c2bf74ef5025dad2c04008e |
| 0.9.7+3 | 2016-08-10T20:16:07.611Z | Download | ea390b8b71c97b1d7fc45364842565b74b703df4174d4ae544664074ea754cf5 |
| 0.9.7+4 | 2017-09-21T22:51:23.625770Z | Download | e808e52504692a86c134a234569b7029b721f982627747b1aabd7552db311dda |
| 0.9.7+6 | 2018-01-05T21:23:16.419320Z | Download | 49c10855d503c2fbbf3294793e08c349ffc996dceec1bbc1a391679f2862b278 |
| 0.9.7+7 | 2018-02-01T19:55:14.728003Z | Download | e56e302722c929f21fad5f8a15eb5c6a15d53b169da2801118f16647ceb8c375 |
| 0.9.7+8 | 2018-05-23T19:48:41.225355Z | Download | 0b9d125d5312551278c1d192f1c50159ca1a9c4a72e2782d3305722e44510168 |
| 0.9.7+9 | 2018-06-25T20:27:01.326120Z | Download | d4ba66cbb84ba051d1a5cb2ace108efb30da1ac104595d8d146590090acb16d2 |
| 0.9.7+10 | 2018-07-18T16:36:37.887316Z | Download | 29e5c18b139f51f5fe8bb4da3534b2de567c6d370d025423ee675533bac0d288 |
| 0.9.7+12 | 2019-07-12T23:09:03.657759Z | Download | 2be7e9b67bfb57f0c3ed37c4efd733564725c12adccd27f50aba8ec0427bff92 |
| 0.9.7+13 | 2019-11-21T21:54:15.496114Z | Download | d502a2bea4c4ed7e9c76b4eae7b9f4559e152609f4afe66ca032c4a6f50f1a35 |
| 0.9.7+14 | 2020-03-06T17:37:09.135093Z | Download | 14f8f33c2c6518062f146ec03edbae1baffe70509e319d96ff857cf28a5479da |
| 0.9.7+15 | 2020-04-22T22:36:32.769856Z | Download | c0b32652d41aa3c5053309286d96c4659f0d3001db9c97422c8700f163aa80e7 |
| 1.0.0-nullsafety.0 | 2021-01-13T23:24:50.124563Z | Download | f471f9fc2282cac341ca1baadaf42a818d851b2f175a200e6baeca085718d9cc |
| 1.0.0 | 2021-02-05T21:50:06.978758Z | Download | 68173f2fa67d241323a4123be7ed4e43424c54befa5505d71c8ad4b7baf8f71d |
| 1.0.1 | 2021-09-30T16:31:39.283356Z | Download | e42dfcc48f67618344da967b10f62de57e04bae01d9d3af4c2596f3712a88c99 |
| 1.0.2 | 2022-10-14T17:15:27.735862Z | Download | 6a7f46926b01ce81bfc339da6a7f20afbe7733eff9846f6d6a5466aa4c6667c0 |
| 1.1.0 | 2023-05-12T18:38:49.215518Z | Download | 3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8 |
| 1.1.1 | 2024-12-17T09:34:54.294658Z | Download | 69da27e49efa56a15f8afe8f4438c4ec02eff0a117df1b22ea4aad194fe1c104 |
| 1.1.2 | 2025-06-11T14:49:31.577092Z | Download | 0b7fd4a0bbc4b92641dbf20adfd7e3fd1398fe17102d94b674234563e110088a |
| 1.1.3 | 2025-08-25T14:06:38.978008Z | Download | 5bf046f41320ac97a469d506261797f35254fa61c641741ef32dacda98b7d39c |
| 1.1.4 | 2025-10-02T15:02:31.636271Z | Download | 592ab6e2892f67760543fb712ff0177f4ec76c031f02f5b4ff8d3fc5eb9fb61a |
| 1.2.0 | 2025-12-12T08:08:18.061015Z | Download | f52385d4f73589977c80797e60fe51014f7f2b957b5e9a62c3f6ada439889249 |
| 1.2.1 | 2026-01-08T07:30:04.790936Z | Download | 1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635 |
Dependencies
async "^2.5.0"
path "^1.8.0"