tarfile
Determine whether any files have been added, removed, or modified in a directory
I\'m trying to write a Python script that will get the md5sum of all files in a directory (in Linux).Which I believe I have done in the code belo开发者_C百科w.[详细]
2023-04-02 17:04 分类:问答tarfile and user,group information problem
I am using python tarfile module to extract files from a *.tgz file. Here what I use: import tarfile tar = tarfile.open(\"some.tar\")[详细]
2023-04-01 13:38 分类:问答Python TarFile with bz2 data
Im trying to download a bz2 compressed tarfile and create a tarfile.TarFile object from it. import MyModule[详细]
2023-03-31 16:27 分类:问答Overwrite existing read-only files when using Python's tarfile
I\'m attempting to use Python\'s tarfile module to extract a tar.gz archive. I\'d like the extraction to overwrite any target files it they already exist - this is tarfile\'s normal behaviour.[详细]
2023-03-31 09:52 分类:问答Extracting file from tarfile with only basename using Python
I have a \'tafile\' which contains files with complete path \'/home/usr/path/to/file\'. When I extract 开发者_开发问答the file to the curent folder it creates the complete path recursively.[详细]
2023-03-08 14:15 分类:问答Does Python's `tarfile` module store the archives it's building in memory?
I\'m working in 开发者_高级运维a memory constrained environment where I need to make archives of SQL dumps. If I use python\'s built in tarfile module is the \'.tar\' file held in memory or written to[详细]
2023-02-15 21:53 分类:问答How can I check if a file exists in a tar archive with Python?
I would like to verify the existence of a given file in a tar archive with Python before I get it as a file-like object. I\'ve tried it with isreg(), but probably I do something wrong.[详细]
2023-01-25 06:07 分类:问答Python tarfile module overwrites existing files during extraction - how to disable it?
Is there a way prevent tarfile.extractall (API) from overwriting existing files? By \"p开发者_StackOverflow社区revent\" I mean ideally raising an exception when an overwrite is about to happen. The cu[详细]
2023-01-19 13:39 分类:问答Organizing files in tar bz2 file with python
I have about 200,000 text files that are placed in a bz2 file. The issue I have is that when I scan the bz2 file to extract the data I need, it goes extremely slow. It has to look through the entire b[详细]
2023-01-11 14:10 分类:问答Get python tarfile to skip files without read permission
I\'m trying to write a function that backs up a directory with files of different permission to an archive on Windows XP.I\'m using the tarfile module to tar the directory.Currently as soon as the pro[详细]
2022-12-30 20:52 分类:问答