'Check we can export a file without errors.'

def testRecursiveDownload(self):

    with utils.TempDirectory() as tmpdir:
        export_utils.RecursiveDownload(aff4.FACTORY.Open(self.out, token=self.token), tmpdir, overwrite=True)
        expected_outdir = os.path.join(tmpdir, self.out.Path()[1:])
        self.assertTrue(('testfile1' in os.listdir(expected_outdir)))
        full_outdir = os.path.join(expected_outdir, 'testdir1', 'testdir2')
        self.assertTrue(('testfile4' in os.listdir(full_outdir)))
