What
Swatcher should properly handle symbolic links
Why
User may have symbolic links for organizing their directory tree
Objective
$ dist/index.js collect ~/Desktop ~/Documents/some/path/
(node:53776) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/Users/shakh/Documents/some/path/build/ModuleCache.noindex/2CVDRYFRPGEEN/Collections-1KU18OXPCEIA1.pcm.lock'
(node:53776) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:53776) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
$ l /Users/shakh/Documents/some/path/build/ModuleCache.noindex/2CVDRYFRPGEEN
drwxr-xr-x@ 45 shakh staff 1.4K Nov 25 20:55 ..
-rw-r--r-- 1 shakh staff 222K Nov 25 20:55 CFNetwork-3C62I0EZF309L-d4ba9abd.pcm.tmp
-rw-r--r-- 1 shakh staff 222K Nov 25 21:00 CFNetwork-3C62I0EZF309L.pcm
-rw-r--r-- 1 shakh staff 0B Nov 25 21:00 Collections-1KU18OXPCEIA1-552c48e7.pcm.tmp
-rw-r--r-- 1 shakh staff 0B Nov 25 20:55 Collections-1KU18OXPCEIA1-f3b9cf7b.pcm.tmp
lrwxr-xr-x 1 shakh staff 129B Nov 25 21:00 Collections-1KU18OXPCEIA1.pcm.lock -> /Users/shakh/Documents/some/path/build/ModuleCache.noindex/2CVDRYFRPGEEN/Collections-1KU18OXPCEIA1.pcm.lock-1ad73e39
[redacted]
What
Swatcher should properly handle symbolic links
Why
User may have symbolic links for organizing their directory tree
Objective