Merge pull request #508 from abperiasamy/win-ls-single-item-bug

This commit is contained in:
Harshavardhana
2015-04-23 16:05:07 -07:00
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(),
}