summaryrefslogtreecommitdiff
path: root/service/reload/samefile.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/reload/samefile.go')
-rw-r--r--service/reload/samefile.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/service/reload/samefile.go b/service/reload/samefile.go
new file mode 100644
index 00000000..80df0431
--- /dev/null
+++ b/service/reload/samefile.go
@@ -0,0 +1,9 @@
+// +build !windows
+
+package reload
+
+import "os"
+
+func sameFile(fi1, fi2 os.FileInfo) bool {
+ return os.SameFile(fi1, fi2)
+}