dart-lang / watcher

A file system watcher library for Dart.
https://pub.dev/packages/watcher
BSD 3-Clause "New" or "Revised" License
138 stars 35 forks source link

Support for watching `content://` in Android #131

Open matthewwong525 opened 1 year ago

matthewwong525 commented 1 year ago

I want to be able to watch files that are created by other applications. Currently, the behaviour is that files created by other applications are not watched. In order to support this I believe we need to use the content:// urls to support the temporary permissions in Android. That being said, I'm naively requesting this because I have no idea how this package works. But I do know of packages that successfully do this.

Perhaps a polling mechanism could be used with the shared_storage package to make this possible?