diff options
Diffstat (limited to 'plugins/reload/samefile_windows.go')
-rw-r--r-- | plugins/reload/samefile_windows.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/reload/samefile_windows.go b/plugins/reload/samefile_windows.go new file mode 100644 index 00000000..5f70d327 --- /dev/null +++ b/plugins/reload/samefile_windows.go @@ -0,0 +1,12 @@ +// +build windows + +package reload + +import "os" + +func sameFile(fi1, fi2 os.FileInfo) bool { + return fi1.ModTime() == fi2.ModTime() && + fi1.Size() == fi2.Size() && + fi1.Mode() == fi2.Mode() && + fi1.IsDir() == fi2.IsDir() +} |