     tmp_path = Tempfile.get_name("", [ext: ".tmp", path: path])
     if File.dir?(path) do
       case File.open(tmp_path, [:write]) do
-        {:ok, filepath} ->
+        {:ok, tmp_path} ->
           {:ok, tmp_path }
         error ->
           error

  defp make_into_path(path_str) do
    Path.absname(path_str) <> "/"
  end
  
  defp full_path(path) do
    File.ls!(path) |> Enum.map(&Path.expand(&1, path))
  end
end
    tmp_path = Tempfile.get_name("", [ext: ext, path: path])
    if File.dir?(path) do
      case File.open(tmp_path, [:write]) do
        {:ok, tmp_path} ->
          {:ok, tmp_path }
        error ->
          error
