gaze
gaze copied to clipboard
:crystal_ball: A globbing fs.watch wrapper built from the best parts of other fine watch libs.
I have a couple of files under watcher. While the watcher detects changed files, it does not seem to do so for added files. How do I solve this?
I can't find a way to watch a folder for added/deleted files. I can achieve this by watching the whole content of the folder using: ``` let watcher = new...
I could be wrong, but I noticed that the `mode` option doesn't seem to be referenced at all within the library. Where is this used? I did some debugging and...
When using node v10.16.3, this error is thrown: ``` (node:48837) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "interval" argument must be of type number. Received type string at StatWatcher.start (internal/fs/watchers.js:76:3) at Object.watchFile (fs.js:1304:10)...
When a folder containing a file is copied or moved to the watched folder only the folder is reported as `added` and the file within the folder is not reported...
When watching path/*.txt all works fine as long as there is at least one *.txt file present. If there are none, then 'added' is not triggered!
Node 0.11 node-webkit 0.9.2 gaze 0.6.3 Ubuntu 14.04 After subscribing to the `changed`, `added`, `deleted` and `renamed` events, I get the `deleted` event before getting the `renamed` event when renaming/moving...
Minimal directory structure: - watchedFolder - subFolder `
Proof is in pudding.. ``` var gaze = require('gaze'), t = require('touch'), base = '/private/var/tmp/', existing = base + 'existingfile' + Math.random(), newfile = base + 'newfile' + Math.random() touch.sync(existing)...