質問編集履歴
2
7行目、16行目の変更点を明記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,7 +68,9 @@
|
|
68
68
|
|
69
69
|
6 infolder = ARGV[0]
|
70
70
|
|
71
|
+
- 7 filenames = Dir.open("#{infolder}/*.cfg")
|
72
|
+
|
71
|
-
|
73
|
+
+ 7 filenames = Dir.glob("#{infolder}/*.cfg")
|
72
74
|
|
73
75
|
8
|
74
76
|
|
@@ -86,7 +88,9 @@
|
|
86
88
|
|
87
89
|
15 keys = []
|
88
90
|
|
91
|
+
-16 files = "./#{filenames("#{n}")}.cfg"
|
92
|
+
|
89
|
-
|
93
|
+
+16 files = "infolder(n)"
|
90
94
|
|
91
95
|
17
|
92
96
|
|
1
7行目を`filenames = Dir.glob("#{infolder}/*.cfg")`に修正しました。また、16行目を`files = "infolder(n)"`に修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,7 +68,7 @@
|
|
68
68
|
|
69
69
|
6 infolder = ARGV[0]
|
70
70
|
|
71
|
-
7 filenames = Dir.o
|
71
|
+
7 filenames = Dir.glob("#{infolder}/*.cfg")
|
72
72
|
|
73
73
|
8
|
74
74
|
|
@@ -86,7 +86,7 @@
|
|
86
86
|
|
87
87
|
15 keys = []
|
88
88
|
|
89
|
-
16 files = "
|
89
|
+
16 files = "infolder(n)"
|
90
90
|
|
91
91
|
17
|
92
92
|
|