diff --git a/src/watcher.go b/src/watcher.go index ffd1da8..af839f4 100644 --- a/src/watcher.go +++ b/src/watcher.go @@ -81,5 +81,5 @@ func processWatchedFile(filePath string) { return } - go processItems(tempFile.Name(), items) + go processItems(filepath.Base(tempFile.Name()), items) }