I have a script on Jupyter Notebook that unzip files, create directories, and move the unzipped files to these directories. However, the script only works in *nix operating systems.
# the name of your folder where the LIEF files are
lief_data_folder = 'Images'
# Is the Account Multi-store? (True/False)
is_multi_store = False
# set the path
base_path = os.getcwd()
raw_data = base_path+'/'+lief_data_folder
# unzip and move file
os.chdir(raw_data)
!for z in *.zip; do unzip -d _$z -o "$z"; done
!mkdir 'products'
!for item in _product_2020*;do mv -f $item 'products'; done
!mkdir 'products_photo'
!for item in _product_photo_*;do mv -f $item 'products_photo'; done
!mkdir 'raw_zip'
!for item in *.lief-packet.zip;do mv -f $item 'raw_zip'; done
!mv 'Data Export Log' 'raw_zip'
!mv 'Data Export Summary' 'raw_zip'
os.chdir(base_path)
print('DONE')
I know that mv is move in Windows but what's the equivalent of unzip or a better solution for Windows? Also what are the equivalent of the options above in mv?