Skip to content

Commit

Permalink
feat: use birthtime
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Aug 29, 2019
1 parent e98e44d commit 4f1714c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/crawler/crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,12 @@ func GetFiles(source string) ([]*File, error) {
for _, fileInfo := range fileInfos {
for key, value := range fileInfo.Fields {
file.ExifMetaData[key] = value
//fmt.Println(fmt.Sprintf("%s: %v", key, value))
}
//spew.Dump(fileInfo)
}
}

// Set file's date
file.SetDate([]string{"DateTimeOriginal", "FileModifyDate"})
file.SetDate([]string{"DateTimeOriginal"})

files = append(files, file)

Expand Down

0 comments on commit 4f1714c

Please sign in to comment.