예제 #1
0
파일: fs.py 프로젝트: fooker/ubermove
    def members(archive: pathlib.Path):
        import rarfile

        with archive.open('rb') as f, rarfile.RarFile(f) as archive:
            return (pathlib.PurePath(info.filename)
                    for info
                    in archive.infolist()
                    if not info.isfdir())
예제 #2
0
파일: fs.py 프로젝트: fooker/ubermove
    def members(archive: pathlib.Path):
        import zipfile

        with archive.open('rb') as f, zipfile.ZipFile(f) as archive:
            return (pathlib.PurePath(info.filename)
                    for info
                    in archive.infolist()
                    if not info.filename.endswith('/'))