Extracting Archive files
z035071
Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 1 ✭
I'm trying to extract set of archive files with different formats like
[".zip", ".7z", ".rar", ".tar", ".gz", ".bz2", ".xz", ".iso", ".ZIP", ".7Z", ".RAR", ".TAR", ".GZ", ".BZ2", ".XZ", ".ISO"]
I was using 7z executable api to extract locally in python . I could see that there's no in built execution api like 7z. Is there anyway to extract these zipped folders in dataiku using python?
I also tried Patoolib which is giving permission error.
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,171 Neuron
You will be far better off using a Shell Recipe and the built-in OS tools (or additional OS level packages) to extract files. Then move to a Python recipe to process the extracted files.