Skip to content

Commit 65ddbfb

Browse files
committed
List files with .raw extension
Downloaded files now have .raw extesion, they are no longer without an extension at all.
1 parent 5ae6f14 commit 65ddbfb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/onigumo/parser.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ defmodule Onigumo.Parser do
66
def main(root_path) do
77
root_path
88
|> File.ls!()
9-
|> Enum.reject(&File.dir?(&1))
10-
|> Enum.reject(&String.contains?(&1, "."))
9+
|> Enum.filter(fn filename -> Path.extname(filename) == ".raw" end)
1110
|> Enum.join("\n")
1211
|> IO.puts()
1312
end

0 commit comments

Comments
 (0)