Spidey v0.3.2 Spidey.File View Source

Soft wrapper around Elixir's File module for saving crawled urls to file.

Link to this section Summary

Functions

Saves the list of files to the specified file.

Writes the content to the file safely closing the file afterwards.

Link to this section Functions

Specs

save([String.t()], String.t()) :: :ok | {:error, any()}

Saves the list of files to the specified file.

Specs

write(File.io_device(), String.t()) :: :ok | {:error, any()}

Writes the content to the file safely closing the file afterwards.