Find all files of type
This commit is contained in:
@@ -11,3 +11,9 @@ MIX_ENV=prod mix release
|
||||
```
|
||||
|
||||
The built binary will be in `_build/prod/rel/bakeware/find_old_mp3s`
|
||||
|
||||
## Usage
|
||||
|
||||
```shell
|
||||
_build/prod/rel/bakeware/find_old_mp3s "~/**/*.{mp3}"
|
||||
```
|
||||
|
||||
@@ -2,8 +2,12 @@ defmodule FindOldMp3s.Main do
|
||||
use Bakeware.Script
|
||||
|
||||
@impl Bakeware.Script
|
||||
def main(_args) do
|
||||
IO.puts "Hello, World!"
|
||||
def main(args) do
|
||||
path = args
|
||||
|> Path.expand
|
||||
|
||||
Path.wildcard(path) |> Enum.each(fn path -> IO.puts(path) end)
|
||||
|
||||
0
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user