Ejemplo n.º 1
0
def get_saved_images(tmpdir, scraper, filtertxt=False):
    """Get saved images."""
    dirs = tuple(scraper.getName().split('/'))
    files = os.listdir(os.path.join(tmpdir, *dirs))
    if filtertxt:
        files = [x for x in files if not x.endswith(".txt")]
    return files
Ejemplo n.º 2
0
def _get_saved_images(outdir, scraper):
    """Get saved images."""
    dirs = tuple(scraper.getName().split('/'))
    files = os.listdir(os.path.join(outdir, *dirs))
    files = [x for x in files if not x.endswith(".txt")]
    return files