use filepath module instead of path for portability
This should fix path separator confusion in windows. Mentioned in #12.
This commit is contained in:
1 parent
90c282e1ec
commit
3d493e8271
5 files changed
+26
-26
No files matched your search
@@ -3,13 +3,13 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"unicode"
|
||||
"unicode/utf8"
|
||||
)
|
||||
|
||||
func isRoot(name string) bool { return path.Dir(name) == name }
|
||||
func isRoot(name string) bool { return filepath.Dir(name) == name }
|
||||
|
||||
// This function converts a size in bytes to a human readable form. For this
|
||||
// purpose metric suffixes are used (e.g. 1K = 1000). For values less than 10
|
||||
|
||||
Reference in new issue
Block a user