diff options
author | Valery Piashchynski <[email protected]> | 2020-12-14 11:35:32 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-14 11:35:32 +0300 |
commit | 909076dbf20dce19207d338ca3f5c931953b64a6 (patch) | |
tree | dd5c25106e5dfc724102397a357cc2cf8f42a885 /plugins/reload/samefile_windows.go | |
parent | 673da74925dee5c62064d3304289ae81cb499217 (diff) |
Initial commit
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() +} |