Skip to content

listdir里的ext_filters,传参报错 #10

@CGguocheng

Description

@CGguocheng

result = (f for f in result if f.ext.lower() in ext_filters)
AttributeError: 'str' object has no attribute 'ext'

result为os.listdir的结果,类型为字符串,没有ext

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