     |> Path.wildcard()
     |> Enum.filter(&(not (File.dir?(&1) or compiled_file?(&1))))
     |> Enum.map(&map_file(&1, input_path))
-  end
-
-  defp filter_digested_files(output_path) do
-    output_path
-    |> Path.join("**")
-    |> Path.wildcard()
-    |> Enum.filter(&uncompressed_digested_file?/1)
-    |> Enum.map(&map_digested_file(&1, output_path))
   end
 
   defp load_compile_digests(output_path) do

      Path.basename(file_path) == "cache_manifest.json"
  end

  defp uncompressed_digested_file?(file_path) do
    Regex.match?(@digested_file_regex, Path.basename(file_path)) ||
      Path.extname(file_path) != ".gz"
  end

  defp map_file(file_path, input_path) do
    {:ok, stats} = File.stat(file_path)

    %{
      absolute_path: file_path,
      relative_path: Path.relative_to(file_path, input_path) |> Path.dirname(),
      filename: Path.basename(file_path),
      size: stats.size,
      content: File.read!(file_path)
    }
  end

  defp map_digested_file(file_path, output_path) do
    {:ok, stats} = File.stat(file_path)
    digested_filename = Path.basename(file_path)
    [digest, _] = Regex.run(@digested_file_regex, digested_filename)
    digest = String.trim_leading(digest, "-")

    %{
      absolute_path: file_path,
      relative_path: Path.relative_to(file_path, output_path) |> Path.dirname(),
      digested_filename: digested_filename,
      filename: String.replace(digested_filename, @digested_file_regex, ""),
      digest: digest,
      size: stats.size,
      content: File.read!(file_path)
    }
  end

  defp digest(file) do
    name = Path.rootname(file.filename)
    extension = Path.extname(file.filename)
    digest = Base.encode16(:erlang.md5(file.content), case: :lower)

    Map.merge(file, %{
      digested_filename: "#{name}-#{digest}#{extension}",
      digest: digest
    })
  end

  defp write_to_disk(file, output_path) do

      |> Map.new()

    new_digests = generate_new_digests(files)
    digests = Map.merge(old_digests_that_still_exist, new_digests)

    save_manifest(
