Package: downloadunzip
creates, uploads, downloads, extracts and copies archives (zip, tar ...)pipinstalldownloadunzipfromdownloadunzipimportextract,copy_folder_to_another_folder,zip_folder,download_and_extractfilepath=r"C:\Users\hansc\Downloads\ripgrep-13.0.0-x86_64-pc-windows-msvc.zip"dest_dir=r"C:\Users\hansc\Downloads\test2xxxx"extractedzipfiles=extract(filepath,dest_dir)print(extractedzipfiles)folder,results=copy_folder_to_another_folder(src=dest_dir,dest="e:\\testcopy",allowed_extensions=(),maxsubfolders=1)print(folder)print(results)foldertmp,resultstmp=copy_folder_to_another_folder(src=dest_dir,dest=None,allowed_extensions=(),maxsubfolders=1)print(foldertmp)print(resultstmp)zipfile,url=zip_folder(srcdir=r"C:\Users\hansc\Downloads\test2xxx\ripgrep-13.0.0-x86_64-pc-windows-gnu",destfile=r"C:\Users\hansc\Downloads\zippedfile.zip",allowed_extensions=("exe",),maxsubfolders=-1,upload=False,password=None,maxdownloads=100000,)print(zipfile)print(url)zipfile,url=zip_folder(srcdir=r"C:\Users\hansc\Downloads\test2xxxx\ripgrep-13.0.0-x86_64-pc-windows-msvc",destfile=r"C:\Users\hansc\Downloads\zippedfile2.zip",allowed_extensions=(),maxsubfolders=-1,upload=True,password=None,maxdownloads=100000,)print(zipfile)print(url)diditwork=download_and_extract(url=r"https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep-13.0.0-x86_64-pc-windows-msvc.zip",folder="e:\\testdownl",)print(diditwork)[files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu',file='COPYING',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\COPYING',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu',file='LICENSE-MIT',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\LICENSE-MIT',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu',file='README.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\README.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu',file='rg.exe',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\rg.exe',ext='.exe'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu',file='UNLICENSE',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\UNLICENSE',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete',file='rg.bash',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete\\rg.bash',ext='.bash'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete',file='rg.fish',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete\\rg.fish',ext='.fish'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete',file='_rg',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete\\_rg',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete',file='_rg.ps1',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete\\_rg.ps1',ext='.ps1'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\doc',file='CHANGELOG.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\doc\\CHANGELOG.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\doc',file='FAQ.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\doc\\FAQ.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\doc',file='GUIDE.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\doc\\GUIDE.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc',file='COPYING',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\COPYING',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc',file='LICENSE-MIT',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\LICENSE-MIT',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc',file='README.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\README.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc',file='rg.exe',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\rg.exe',ext='.exe'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc',file='UNLICENSE',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\UNLICENSE',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete',file='rg.bash',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete\\rg.bash',ext='.bash'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete',file='rg.fish',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete\\rg.fish',ext='.fish'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete',file='_rg',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete\\_rg',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete',file='_rg.ps1',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete\\_rg.ps1',ext='.ps1'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\doc',file='CHANGELOG.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\doc\\CHANGELOG.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\doc',file='FAQ.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\doc\\FAQ.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\doc',file='GUIDE.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\doc\\GUIDE.md',ext='.md')]e:\testcopy[(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\COPYING'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\LICENSE-MIT'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\README.md'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\rg.exe'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\UNLICENSE'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\COPYING'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\LICENSE-MIT'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\README.md'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\rg.exe'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\UNLICENSE')]C:\Users\hansc\AppData\Local\Temp\tmpx7r88ose[(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmpx7r88ose\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\COPYING'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmpx7r88ose\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\LICENSE-MIT'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmpx7r88ose\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\README.md'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmpx7r88ose\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\rg.exe'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmpx7r88ose\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\UNLICENSE'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmpx7r88ose\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\COPYING'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmpx7r88ose\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\LICENSE-MIT'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmpx7r88ose\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\README.md'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmpx7r88ose\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\rg.exe'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmpx7r88ose\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\UNLICENSE')]C:\Users\hansc\Downloads\zippedfile.zipNoneC:\Users\hansc\Downloads\zippedfile2.ziphttps://transfer.sh/A3iiQ4/zippedfile2.zipTrue[files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu',file='COPYING',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\COPYING',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu',file='LICENSE-MIT',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\LICENSE-MIT',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu',file='README.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\README.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu',file='rg.exe',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\rg.exe',ext='.exe'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu',file='UNLICENSE',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\UNLICENSE',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete',file='rg.bash',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete\\rg.bash',ext='.bash'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete',file='rg.fish',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete\\rg.fish',ext='.fish'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete',file='_rg',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete\\_rg',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete',file='_rg.ps1',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\complete\\_rg.ps1',ext='.ps1'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\doc',file='CHANGELOG.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\doc\\CHANGELOG.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\doc',file='FAQ.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\doc\\FAQ.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\doc',file='GUIDE.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\doc\\GUIDE.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc',file='COPYING',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\COPYING',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc',file='LICENSE-MIT',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\LICENSE-MIT',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc',file='README.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\README.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc',file='rg.exe',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\rg.exe',ext='.exe'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc',file='UNLICENSE',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\UNLICENSE',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete',file='rg.bash',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete\\rg.bash',ext='.bash'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete',file='rg.fish',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete\\rg.fish',ext='.fish'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete',file='_rg',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete\\_rg',ext=''),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete',file='_rg.ps1',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\complete\\_rg.ps1',ext='.ps1'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\doc',file='CHANGELOG.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\doc\\CHANGELOG.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\doc',file='FAQ.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\doc\\FAQ.md',ext='.md'),files(folder='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\doc',file='GUIDE.md',path='C:\\Users\\hansc\\Downloads\\test2xxxx\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\doc\\GUIDE.md',ext='.md')]e:\testcopy[(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\COPYING'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\LICENSE-MIT'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\README.md'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\rg.exe'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\UNLICENSE'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\COPYING'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\LICENSE-MIT'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\README.md'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\rg.exe'),(True,'e:\\testcopy\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\UNLICENSE')]C:\Users\hansc\AppData\Local\Temp\tmp6sl3v7v6[(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmp6sl3v7v6\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\COPYING'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmp6sl3v7v6\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\LICENSE-MIT'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmp6sl3v7v6\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\README.md'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmp6sl3v7v6\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\rg.exe'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmp6sl3v7v6\\ripgrep-13.0.0-x86_64-pc-windows-gnu\\UNLICENSE'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmp6sl3v7v6\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\COPYING'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmp6sl3v7v6\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\LICENSE-MIT'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmp6sl3v7v6\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\README.md'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmp6sl3v7v6\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\rg.exe'),(True,'C:\\Users\\hansc\\AppData\\Local\\Temp\\tmp6sl3v7v6\\ripgrep-13.0.0-x86_64-pc-windows-msvc\\UNLICENSE')]C:\Users\hansc\Downloads\zippedfile.zipNoneC:\Users\hansc\Downloads\zippedfile2.ziphttps://transfer.sh/EjUBrS/zippedfile2.zipTruecopy_folder_to_another_folder(src:str,dest:Optional[str]=None,allowed_extensions:tuple=(),maxsubfolders:int=-1)->Tuple[str,list]Copiesallfilesandfoldersfromthesourcefoldertothedestinationfolder.Ifthedestinationfolderisnotspecified,atemporaryfolderiscreated.Onlyfileswithallowedextensionsarecopiedifspecified.Themaximumnumberofsubfolderstocopycanbespecified.Args:-src(str):Thepathofthesourcefoldertocopyfrom.-dest(Union[str,None],optional):Thepathofthedestinationfoldertocopyto.DefaultstoNone.-allowed_extensions(tuple,optional):Atupleofallowedfileextensionstocopy.Defaultsto()(allfilesallowed).-maxsubfolders(int,optional):Themaximumnumberofsubfolderstocopy.Defaultsto-1(allsubfolders).Returns:-Tuple[str,list]:Atuplecontainingthepathofthedestinationfolderandalistoftuples.Eachtupleinthelistcontainsabooleanvalueindicatingwhetherthefilewassuccessfullycopiedandthepathofthecopiedfile.download_and_extract(url:str,folder:str,*args,**kwargs)->boolDownloadsafilefromthegivenURLandextractsittothespecifiedfolder.Args:url(str):TheURLofthefiletodownload.folder(str):Thefoldertoextractthedownloadedfileto.*args:Additionalpositionalargumentstopasstotherequests.get()function.**kwargs:Additionalkeywordargumentstopasstotherequests.get()function.Returns:bool:Trueifthefilewasdownloadedandextractedsuccessfully,Falseotherwise.extract(filepath:str,dest_dir:str)->listExtractsthecontentsofacompressedfiletoaspecifieddirectory.Args:filepath(str):Thepathtothecompressedfile.dest_dir(str):Thepathtothedirectorywherethecontentswillbeextracted.Returns:list:Alistofcompletefilepathsforallfilesextracted.Raises:OSError:Ifthedestinationdirectorycannotbecreated.Exception:Ifthefilecannotbeextractedusinganyoftheavailableformats.find_same_common_folder(files)get_tmpfile(suffix='.bin')iter_find_same_beginning_elements(iters)tempfolder()upload_file_to_transfer(filepath:str,password:Optional[str]=None,maxdownloads:int=100000)->strvartolist(regular_expressions)zip_folder(srcdir:str,destfile:str,allowed_extensions:tuple=(),maxsubfolders:int=-1,upload:bool=False,password:Optional[str]=None,maxdownloads:int=100000)->Tuple[str,Optional[str]]CompressesthecontentsofasourcedirectoryintoaZIPfileandsavesittoadestinationfile.Ifspecified,uploadstheZIPfiletoafiletransferserviceandreturnsadownloadlink.Args:srcdir(str):Thepathtothesourcedirectorytobecompressed.destfile(str):ThepathtothedestinationfilewheretheZIPfilewillbesaved.allowed_extensions(tuple,optional):AtupleoffileextensionstoincludeintheZIPfile.Defaultsto().maxsubfolders(int,optional):ThemaximumnumberofsubfolderstoincludeintheZIPfile.Defaultsto-1(nolimit).upload(bool,optional):WhethertouploadtheZIPfiletoafiletransferservice.DefaultstoFalse.password(Union[None,str],optional):ThepasswordtoprotecttheZIPfilewith.DefaultstoNone.maxdownloads(int,optional):Themaximumnumberoftimestheuploadedfilecanbedownloaded.Defaultsto100000.Returns:Tuple[str,Union[None,str]]:AtuplecontainingthepathtothesavedZIPfileand,ifuploaded,adownloadlink.Raises:OSError:Ifthedestinationfilecannotbecreatedorremoved.Exception:IfafilecannotberemovedafterbeingaddedtotheZIPfile.