|
@@ -24,17 +24,6 @@ const (
|
|
|
SocketType = iota
|
|
|
)
|
|
|
|
|
|
-// FileTypes is a map containing the above defined types
|
|
|
-var FileTypes = map[string]int{
|
|
|
- "file": FileType,
|
|
|
- "dir": DirType,
|
|
|
- "slnk": SymLinkType,
|
|
|
- "hlnk": HardLinkType,
|
|
|
- "char": CharDevType,
|
|
|
- "pipe": NamedPipeType,
|
|
|
- "sock": SocketType,
|
|
|
-}
|
|
|
-
|
|
|
// INode is an entry in the filesystem. It can be:
|
|
|
// - a file
|
|
|
// - a directory
|
|
@@ -69,11 +58,11 @@ func (il *INodeList) Append(node *INode) {
|
|
|
}
|
|
|
|
|
|
// INodeChan is a channel global to the sizer package that is used
|
|
|
-// to funnel the retrieved sizez and infos on the inodes.
|
|
|
+// to funnel the retrieved sizes and infos on the inodes.
|
|
|
var INodeChan chan *INode
|
|
|
|
|
|
// ErrNotIdenfiedType is the error returned when the a classifier does not
|
|
|
-// recognize the INode type as one present in FileTypes.
|
|
|
+// recognize the INode type.
|
|
|
var ErrNotIdenfiedType = errors.New("inode not identified")
|
|
|
|
|
|
// NewINode returns a new *INode with kind, size and path
|