import tarfile # Specify the path to your .tar file tar_file_path = "/mnt/disk_60tb/laion5b-bucket-data/laion5b_wds_2/100M-150M-subset-39627510/100M-150M-subset-39627510.parquet/00099.tar" # Open the .tar file with tarfile.open(tar_file_path, 'r') as tar: # Extract all files tar.extractall(path='/mnt/disk_60tb/laion5b-bucket-data-with-depth/test/00099_tar')