Commit ed177e80 authored by ioedeveloper's avatar ioedeveloper

Check if notification absolute path exists

parent 1502cd95
...@@ -196,7 +196,9 @@ export class RemixdClient extends PluginClient { ...@@ -196,7 +196,9 @@ export class RemixdClient extends PluginClient {
} }
setupNotifications (path: string): void { setupNotifications (path: string): void {
if (!isRealPath(path)) return const absPath = utils.absolutePath('./', path)
if (!isRealPath(absPath)) return
const watcher = chokidar.watch(path, { depth: 0, ignorePermissionErrors: true }) const watcher = chokidar.watch(path, { depth: 0, ignorePermissionErrors: true })
console.log('setup notifications for ' + path) console.log('setup notifications for ' + path)
/* we can't listen on created file / folder /* we can't listen on created file / folder
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment