Flush decompressed files in rosbag2.Reader
This commit is contained in:
parent
51c0b30cbc
commit
2732b8876e
@ -47,7 +47,7 @@ def decompress(path: Path, do_decompress: bool) -> Generator[Path, None, None]:
|
|||||||
dbfile = Path(tempdir, path.stem)
|
dbfile = Path(tempdir, path.stem)
|
||||||
with path.open('rb') as infile, dbfile.open('wb') as outfile:
|
with path.open('rb') as infile, dbfile.open('wb') as outfile:
|
||||||
decomp.copy_stream(infile, outfile)
|
decomp.copy_stream(infile, outfile)
|
||||||
yield dbfile
|
yield dbfile
|
||||||
else:
|
else:
|
||||||
yield path
|
yield path
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user