clean dir input
This commit is contained in:
parent
dfed84eb74
commit
536fc9e925
2 changed files with 5 additions and 1 deletions
|
@ -64,6 +64,7 @@ func NewDisk(path string) (DiskFile, error) {
|
|||
}
|
||||
|
||||
func FindDisk(dir string, recursive bool, f *filter.Filter) (files Files, err error) {
|
||||
dir = filepath.Clean(dir)
|
||||
if dir == "." || dir == "" {
|
||||
var d string
|
||||
if d, err = os.Getwd(); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue