Downloader Object

class getwebfilesinator.downloaders.downloaders_defaults.Downloader(client)[source]

Class for create downloaders for GetWebFilesInator

cfg = None

The configuration object.

client = None

The client object.

download(sfile)[source]

Process a sfile

Parameters:sfile (Edo) – a Edo object (which is a dict with attributes)
Return type:any.

This method can return:

  • False: if we want to stop processing the file.
  • True or None: if we want the client guess the action from the filename.
  • 'zip' or 'plain': to force the action to take.
  • a callable which accepts sfile and cfg as parameters if we want to pass the action to take.
get_type = ''

Name of the get_type used to map the downloader.

guess_priority = 0

Gives a priority for the guess_type type method

guess_type(sfile)[source]

Guess the get_type

Parameters:sfile (Edo) – the sfile to test.
Return type:self or None

Returns None if the test on sfile fails else returns self