Search
 
SCRIPT & CODE EXAMPLE
 

CPP

how to extract a folder using python

pip install patool
import patoolib

#case 1 specific output path
patoolib.extract_archive("filename.rar", outdir="outputpath")

#case 2 current working directory
patoolib.extract_archive("filename.rar")

Comment

extract directory python

import zipfile
inpath = MyDirPath
outpath = inpath.replace(".zip", "") # Remove zip extension so that outpath does not have .zip
        with zipfile.ZipFile(inpath, 'r') as z:
            z.extractall(outpath) # Extracts
Comment

PREVIOUS NEXT
Code Example
Cpp :: std::map get all keys 
Cpp :: assignment operator with pointers c++ 
Cpp :: tabeau pseudo dynamique sur c++ 
Cpp :: maximum subarray leetcode c++ 
Cpp :: c++ swap function 
Cpp :: c++ print array of arrays with pointer 
Cpp :: find first of a grammar 
Cpp :: c++ write string 
Cpp :: c++ preprocessor commands 
Cpp :: C++ vector structure 
Cpp :: c++ linked list 
Cpp :: std::string substr 
Cpp :: Valid Parentheses leetcode in c++ 
Cpp :: converting int to string c++ 
Cpp :: max circular subarray sum gfg practice 
Cpp :: compile and run cpp file on mac c++ 
Cpp :: unordered_map in c++ 
Cpp :: c++ shared pointer operator bool 
Cpp :: codeforces problem 1030A solution 
Cpp :: function for reversing an array c++ stl 
Cpp :: remove item from layout 
Cpp :: how-to-read-until-eof-from-cin-in-c++ 
Cpp :: kadane algo 
Cpp :: what is xor_eq c++ 
Cpp :: sort an array using stl 
Cpp :: Opengl GLFW basic window 
Cpp :: cpp get keystroke in console only 
Cpp :: c++ put a function in a other thread 
Cpp :: what does npl mean? 
Cpp :: c++ bind what are placeholders 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =