def extract_paths(self, paths, ignore_nopath):
try:<EOL><INDENT>if self._has_tar_and_gzip():<EOL><INDENT>self._extract_paths_tar_gz(paths, ignore_nopath)<EOL><DEDENT>else:<EOL><INDENT>self._extract_paths_scp(paths, ignore_nopath)<EOL><DEDENT><DEDENT>except (ssh.LagoSSHTimeoutException, LagoVMNotRunningError):<EOL><INDENT>raise ExtractPathError(<EOL>'<STR_LIT>'.<EOL>format(self.vm.name())<EOL>)<EOL><DEDENT>
Extract the given paths from the domain
Args:
    paths(list of str): paths to extract
    ignore_nopath(boolean): if True will ignore none existing paths.
Returns:
    None
Raises:
    :exc:`~lago.plugins.vm.ExtractPathNoPathError`: if a none existing
        path was found on the VM, and ``ignore_nopath`` is True.
    :exc:`~lago.plugins.vm.ExtractPathError`: on all other failures.