Skip to content

Test on a folder got error. #226

@sibadakesi

Description

@sibadakesi
 if os.path.isdir(args.imgs[0]):   # Maybe args.imgs.
        imgs = find_recursive(args.imgs[0])
    else:
        imgs = [args.imgs]

and "find_recursive"

def find_recursive(root_dir):
    files = []
    filenames = os.listdir(root_dir)
    for filename in filenames:
        files.append(os.path.join(root_dir, filename))
    return files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions