'Create a new task factory.
`toppath` is the user-specified path to search for music to
import. `session` is the `ImportSession`, which controls how
tasks are read from the directory.'

def __init__(self, toppath, session):

    self.toppath = toppath
    self.session = session
    self.skipped = 0
    self.imported = 0
    self.is_archive = ArchiveImportTask.is_archive(syspath(toppath))
