chrome.filesystem 跟踪目录变化
chrome.filesystem track directory to changes
我正在开发 Chrome 应用程序。
是否可以使用 chrome.filesystem 跟踪选定条目(以及所有子 folders/files)的更改?
有些 discussion on the Chromium issue tracker for implementing an Entry Watcher API. However, there hasn't been much traction on it. The chrome.fileSystem API doesn't provide any options for watching/tracking changes to files and folders - only the chrome.fileSystemProvider API 对于 Chrome OS 只能做到这一点。
文件系统 API 实际上是 not well supported these days, so it may be best to avoid it. You may have better luck with the Chrome Sync FileSystem API,但是使用 onFileStatusChanged
事件来跟踪更改。
目前正在开发将 Observers 引入 IndexedDB,我怀疑这将是首选。
我正在开发 Chrome 应用程序。 是否可以使用 chrome.filesystem 跟踪选定条目(以及所有子 folders/files)的更改?
有些 discussion on the Chromium issue tracker for implementing an Entry Watcher API. However, there hasn't been much traction on it. The chrome.fileSystem API doesn't provide any options for watching/tracking changes to files and folders - only the chrome.fileSystemProvider API 对于 Chrome OS 只能做到这一点。
文件系统 API 实际上是 not well supported these days, so it may be best to avoid it. You may have better luck with the Chrome Sync FileSystem API,但是使用 onFileStatusChanged
事件来跟踪更改。
目前正在开发将 Observers 引入 IndexedDB,我怀疑这将是首选。