gopkg.in/hugelgupf/u-root.v4@v4.0.0-20180831060141-1d761fb73d50/cmds/cp/cp_plan9.go (about) 1 // Copyright 2013-2017 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 func sameFile(sys1, sys2 interface{}) bool { 8 a := sys1.(*dir) 9 b := sys2.(*dir) 10 return a.Qid.Path == b.Qid.Path && a.Type == b.Type && a.Dev == b.Dev 11 }