     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

defmodule Radpath do
  alias :file, as: F
  alias :zip, as: Z
  import Tempfile

  @doc """
  Returns all of the directories in the :qgiven path

    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
