diff options
author | Valery Piashchynski <[email protected]> | 2020-02-19 17:30:05 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-02-19 17:30:05 +0300 |
commit | 9cff24e4d515d684cefdf46624da90d22224aeaa (patch) | |
tree | b49142bcb1fd207065259f7693e36ab67f8eed58 /service/reload/samefile_windows.go | |
parent | 24ec01aa7f0225098e4c750a8c51843cc41bbf8b (diff) |
First concept of reload
Diffstat (limited to 'service/reload/samefile_windows.go')
-rw-r--r-- | service/reload/samefile_windows.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/service/reload/samefile_windows.go b/service/reload/samefile_windows.go new file mode 100644 index 00000000..5f70d327 --- /dev/null +++ b/service/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() +} |