utils.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:deb-python-django-pyscss 作者: openstack 项目源码 文件源码
def find_all_files(glob):
    """
    Finds all files in the django finders for a given glob,
    returns the file path, if available, and the django storage object.
    storage objects must implement the File storage API:
    https://docs.djangoproject.com/en/dev/ref/files/storage/
    """
    for finder in finders.get_finders():
        for path, storage in finder.list([]):
            if fnmatch.fnmatchcase(os.path.join(getattr(storage, 'prefix', '')
                                                or '', path),
                                   glob):
                yield path, storage
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号