OSDN Git Service

Thanos did someting
[bytom/vapor.git] / vendor / github.com / ipfs / go-ipfs-files / is_hidden.go
diff --git a/vendor/github.com/ipfs/go-ipfs-files/is_hidden.go b/vendor/github.com/ipfs/go-ipfs-files/is_hidden.go
deleted file mode 100644 (file)
index 4ebca60..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// +build !windows
-
-package files
-
-import (
-       "path/filepath"
-       "strings"
-)
-
-func IsHidden(name string, f Node) bool {
-       fName := filepath.Base(name)
-
-       if strings.HasPrefix(fName, ".") && len(fName) > 1 {
-               return true
-       }
-
-       return false
-}