TarInfo
class with a different
|
|
|
|
|
Examples:-
import os import tarfile def hello(file): a = tarfile.open(file, mode="w") info = a.gettarinfo("tarfile.txt", arcname="changed.txt") a.addfile(info) print (a.getnames()) file="tarfile_add.tar" hello(file)
OUTPUT:-
Name | Views | Likes |
---|---|---|
Python project_Speech to text | 478 | 3 |
Tarfile_Metadata | 378 | 6 |
Library_Tarfile | 631 | 5 |
python project_color detection | 538 | 3 |
Text to Speech using Python | 445 | 6 |
Tarfile_TarInfo Objects | 313 | 5 |
Tarfile_Extracting file from Archive | 264 | 3 |
Tarfile_generator function | 295 | 3 |
tarfile_targzstream | 259 | 7 |
Tarfile_Exception | 643 | 5 |
python Project_Detecting Fake news | 773 | 3 |
Tarfile_working with compressed archives | 328 | 5 |
Tarfile_Objects | 368 | 5 |
Project in python_color detection | 76 | 1 |
Tarfile_Archive Access | 342 | 5 |
Comments