|
@@ -5,6 +5,7 @@ import (
|
|
|
"fmt"
|
|
|
"os"
|
|
|
"path/filepath"
|
|
|
+ "sort"
|
|
|
"strings"
|
|
|
|
|
|
"git.thirdmartini.com/thirdmartini/vessel"
|
|
@@ -69,7 +70,15 @@ func main() {
|
|
|
fmt.Printf("Bundle Size: %d\n", b.Size())
|
|
|
fmt.Printf("Bundle Version: %x\n", b.Version())
|
|
|
files := b.FileInfo()
|
|
|
- for path, file := range files {
|
|
|
+
|
|
|
+ sorted := make([]string, 0, len(files))
|
|
|
+ for path, _ := range files {
|
|
|
+ sorted = append(sorted, path)
|
|
|
+ }
|
|
|
+ sort.Strings(sorted)
|
|
|
+
|
|
|
+ for _, path := range sorted {
|
|
|
+ file := files[path]
|
|
|
fmt.Printf(" %v %10d %s\n", file.ModTime().UTC(), file.Size(), path)
|
|
|
}
|
|
|
// print contents
|