       true ->
         case File.dir?(path) do
           true -> :error
-          false -> File.read!(path)
+          false -> path
+                   |> File.read!
                    |> :ec_file.sha1sum
                    |> to_string
         end

  end

  @doc """
  Returns the md5sum of a file. Only works for files. Folders passed will return :error:

  ## Arguments


  end

  defp do_mkdir(path) do
    unless File.exists?(path) do
      case File.mkdir(path) do
        :ok -> path
        error -> error
