You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
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)
}
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: