Create fs.Directory interface and use it everywhere
This commit is contained in:
parent
e2d7d413ef
commit
e7d04fc103
31 changed files with 226 additions and 250 deletions
|
@ -99,7 +99,7 @@ can be processed line by line as each item is written one to a line.
|
|||
item.ModTime = Timestamp(entry.ModTime())
|
||||
}
|
||||
switch x := entry.(type) {
|
||||
case *fs.Dir:
|
||||
case fs.Directory:
|
||||
item.IsDir = true
|
||||
case fs.Object:
|
||||
item.IsDir = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue