File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ defmodule IEx.Helpers do
23
23
There are many other helpers available:
24
24
25
25
* `b/1` - prints callbacks info and docs for a given module
26
- * `c/1` - compiles a file at the current directory
27
- * `c/2` - compiles a file at the given path
26
+ * `c/1` - compiles a file into the current directory
27
+ * `c/2` - compiles a file to the given path
28
28
* `cd/1` - changes the current directory
29
29
* `clear/0` - clears the screen
30
30
* `flush/0` - flushes all messages sent to the shell
@@ -115,6 +115,7 @@ defmodule IEx.Helpers do
115
115
116
116
c "baz.ex"
117
117
#=> [Baz]
118
+
118
119
"""
119
120
def c ( files , path \\ "." ) when is_binary ( path ) do
120
121
files = List . wrap ( files )
@@ -123,10 +124,7 @@ defmodule IEx.Helpers do
123
124
raise ArgumentError , "expected a binary or a list of binaries as argument"
124
125
end
125
126
126
- { found , not_found } =
127
- files
128
- |> Enum . map ( & Path . expand ( & 1 , path ) )
129
- |> Enum . partition ( & File . exists? / 1 )
127
+ { found , not_found } = Enum . partition ( files , & File . exists? / 1 )
130
128
131
129
unless Enum . empty? ( not_found ) do
132
130
raise ArgumentError , "could not find files #{ Enum . join ( not_found , ", " ) } "
You can’t perform that action at this time.
0 commit comments