do find style listing on windows as well

This commit is contained in:
Anand Babu (AB) Periasamy
2015-04-23 16:02:16 -07:00
parent 6be627246b
commit 1a83cf3c5c
2 changed files with 1 additions and 6 deletions
-1
View File
@@ -120,7 +120,6 @@ func (f *fsClient) List() (items []*client.Item, err error) {
return err // fatal
}
item := &client.Item{
// Name: strings.TrimPrefix(fp, f.path+string(filepath.Separator)),
Name: fp,
Time: fi.ModTime(),
Size: fi.Size(),
+1 -5
View File
@@ -140,12 +140,8 @@ func (f *fsClient) List() (items []*client.Item, err error) {
}
return err // fatal
}
if fi.IsDir() {
return nil // not a fs skip
}
// trim f.String()
item := &client.Item{
Name: strings.TrimPrefix(filepath.Clean(fp), f.path+string(filepath.Separator)),
Name: fp,
Time: fi.ModTime(),
Size: fi.Size(),
}