From f3265e92e014d1536c8a26051c4b46a0c19813c7 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Sat, 8 Oct 2016 17:07:26 +0200 Subject: [PATCH] Updated dep: go-fs --- vendor/github.com/mitchellh/go-fs/fat/directory_cluster.go | 5 +++-- vendor/vendor.json | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/vendor/github.com/mitchellh/go-fs/fat/directory_cluster.go b/vendor/github.com/mitchellh/go-fs/fat/directory_cluster.go index 6d490d9e4..12ccb9327 100644 --- a/vendor/github.com/mitchellh/go-fs/fat/directory_cluster.go +++ b/vendor/github.com/mitchellh/go-fs/fat/directory_cluster.go @@ -9,6 +9,7 @@ import ( "math" "time" "unicode/utf16" + "strings" ) type DirectoryAttr uint8 @@ -341,8 +342,8 @@ func DecodeDirectoryClusterEntry(data []byte) (*DirectoryClusterEntry, error) { data[0] = 0xE5 } - result.name = string(data[0:8]) - result.ext = string(data[8:11]) + result.name = strings.TrimRight(string(data[0:8]), " ") + result.ext = strings.TrimRight(string(data[8:11]), " ") // Creation time createTimeTenths := data[13] diff --git a/vendor/vendor.json b/vendor/vendor.json index f068dcbc0..71a8329ad 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -459,7 +459,8 @@ { "checksumSHA1": "mVqDwKcibat0IKAdzAhfGIHPwI8=", "path": "github.com/mitchellh/go-fs", - "revision": "a34c1b9334e86165685a9449b782f20465eb8c69" + "revision": "4f9d2cb031e44bef60d0c00ccb3f31f68867e85e", + "revisionTime": "2016-09-29T19:58:49Z" }, { "checksumSHA1": "3ptHw3lJIghPRCAc05e5F4S0UMY=",