While reading file from a network drive we are getting below error.
short read in readEvents on
what changes needs to be done on networkDrive permission to get rid of this issue?
it is working fine with windows inbuild drive (i.e. C: / D: )
My Code is as follows.
package main
import (
"fmt"
"log"
"os"
"time"
"github.com/howeyc/fsnotify"
)
func main() {
fmt.Println("hello world")
watcher, err := fsnotify.NewWatcher()
if err != nil {
log.Fatal(err)
}
go func() {
for {
select {
case ev := <-watcher.Event:
log.Println("Custom:", ev)
log.Println("event:", ev)
case err := <-watcher.Error:
log.Println("error:", err)
}
}
}()
err = watcher.Watch(os.Args[1])
if err != nil {
log.Fatal(err)
}
time.Sleep(2 * time.Hour)
}
While reading file from a network drive we are getting below error.
short read in readEvents on what changes needs to be done on networkDrive permission to get rid of this issue? it is working fine with windows inbuild drive (i.e. C: / D: )
My Code is as follows.