This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 4aa6049 Use File.join for pathname construction
4aa6049 is described below
commit 4aa6049adb77c4606f5525957f00846f44eae6dd
Author: Sebb <[email protected]>
AuthorDate: Sun Feb 14 14:20:35 2021 +0000
Use File.join for pathname construction
---
tools/mboxhdr2csv.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/mboxhdr2csv.rb b/tools/mboxhdr2csv.rb
index c10d92c..cd1807d 100644
--- a/tools/mboxhdr2csv.rb
+++ b/tools/mboxhdr2csv.rb
@@ -377,7 +377,7 @@ module MboxUtils
def scan_dir_stats2csv(dir, outname, ext = '.json')
errors = []
jzons = []
- Dir["#{dir}/**/*#{ext}"].sort.each do |f|
+ Dir[File.join(dir, "**", "*#{ext}")].sort.each do |f|
begin
tmp = JSON.parse(File.read(f))
if tmp[0].kind_of?(String) && tmp[0].start_with?(VERSION)