Picker for skpick, just bullshit
git clone https://github.com/deepghs/skpick.git
cd skpick
pip install -r requirements.txt
Extract from one zip file
from skpick.pick import pick_from_package
pick_from_package(
'/your/package.zip',
'/your/directory/to/save',
)
Extract from multiple zip file from a directory
from skpick.pick import pick_from_dir_of_packages
pick_from_dir_of_packages(
'/your/packages/dir',
'/your/directory/to/save', # files from all the packages will be stored to this directory
)
Flatten all files (including archive files) to another directory
import os
from skpick.flatten import flatten_to_directory
src_dir = '/from/directory'
dst_dir = '/drive/f/ts'
os.makedirs(dst_dir, exist_ok=True)
if __name__ == '__main__':
flatten_to_directory(src_dir, dst_dir)