 
     defp do_files(paths, result) do
       [h | t] = paths
-      do_files(t, result ++ files_list(h))
+      do_files(t, result ++ ext_file_list(h))
     end
 
     defp do_ext_files([], result, file_ext) do

      do_ext_files(t, result ++ ext_file_list(h, file_ext), file_ext)
    end

    defp ext_file_list(path, file_ext) do
      expanded_path = Path.expand(path)
      case File.exists? expanded_path do
        true -> Finder.new()

      end
    end

    # defp files_list(path) when is_bitstring(path) do
    #   expanded_path = Path.expand(path)
    #   case File.exists? expanded_path do
    #     true -> Finder.new()
    #             |> Finder.only_files()
    #             |> Finder.find(expanded_path)
    #             |> Enum.to_list
    #     false -> []
    #   end
    # end
  end
 end
end
