summaryrefslogtreecommitdiff
path: root/bin/fmt-metadata
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-07-01 19:10:47 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-07-01 19:10:47 -0400
commitbc0107813be28ab9532f136047d23bbaa158ee8b (patch)
treea58775772295b25d4955124be85159926cf3c88a /bin/fmt-metadata
parent55f9bd8d5226eb49f5899c5ddca89c655ef96e9b (diff)
fixo
Diffstat (limited to 'bin/fmt-metadata')
-rwxr-xr-xbin/fmt-metadata4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/fmt-metadata b/bin/fmt-metadata
index 0682414..7867d63 100755
--- a/bin/fmt-metadata
+++ b/bin/fmt-metadata
@@ -4,15 +4,13 @@ require 'time'
snapshot = ARGV.first.to_i
$stdin.each_line do |line|
- m = /^ (\S+) +(..-\S+-.... ..:..) +([0-9.]+)(\S+) *$/.match(line)
+ m = /^ (\S+) +(..-\S+-.... ..:..) +([0-9.-]+)(\S+) *$/.match(line)
raise "Malformed line: #{line}" unless m
name = m[1]
datetime = m[2]
size_numb = m[3]
size_unit = m[4]
- next if name.downcase == "parent directory"
-
# The Unicode.org web server switched the timezone of timestamps
# in May 2004
if snapshot < 20040500000000