use filepath module instead of path for portability

This should fix path separator confusion in windows.

Mentioned in #12.
This commit is contained in:
Gokcehan committed 2016-09-07 00:27:55 +03:00
1 parent 90c282e1ec
commit 3d493e8271
5 files changed
+26 -26

No files matched your search

+2 -2
View File
@@ -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