[ b / kemono / coomer ]

/kemono/ - kemono.party

Kemono Development and Discussion
Name
Email
Subject
Comment
Verification
File
Password (For file deletion.)

File: 1675330724917.png (15.62 KB, 774x644, 1.png)

 No.27494

Does anyone have a python script that uses 7-zip to recursively extract any archive (zip, rar, cbz, cbr, etc) in a given directory, ignores password'd archives, and removes the archive if it was successfully extracted?

Something like:
>script.py "C:\Downloads\Archives" zip rar 7z

 No.27496

No idea but windows powertoys has a bulk rename option maybe that could help i guess?
>delete the archive afterwards
Somebody clearly shows no regards for the backup gods

 No.27988

I do but I will only share if you beg for it.

 No.28010

>>27988
Please share it.

 No.28013

I told you to beg for it moron

 No.28014

>>28013
fuck off back to /requests/ retard
>also using protonglow
stfu creatorfag kikes like you dont belong here inb4 somebody posts memz

 No.28015

Well here you go you ungrateful asshole.

Link to python code (bcs kemono is too RETARDED to allow adding python files to post): https://pastebin.com/y4HQa187
Run: python extract.py –help for info.
Example: python extract.py -i <path> –delete

 No.28016

>>28014
I dont understand half the shit that comes outa your mouth looser. Go fck yrself.

 No.28017

>>28014
Can you recommend an alternative to proton tho? cock.li??

 No.28018

>>28015
>ingr8
for the record i am NOT OP and why do i even have to beg? you want me to give furrybux why not just ask nicely? mods allow troll threads here like the ones below its not a big deal
>luser
thanks for outing yourself as a plebbitor perhaps that explains it

umm thanks i guess i mean i do apologize for what i did earlier but why do you have to be rude in the first place? are protogent coders really this elitist and arrogant? i thought you guys were chill no wonder why the stereotype exists among this idiotic fandom of yours
also just use tutanoa or something paid fuck ((free speech))

 No.28019

>>28015
I'm not >>28014

Thank you so much for your help. Will this work if the file path in the archive exceeds the filesystem's allowed maximum length?

 No.28022

>>28019
I dont fuckin know dude. How bout you switch to linux. Or here:
https://www.google.com/search?q=7z+extract+filename+length+exceeds+maximum+length&hl=en

>>28018
appreciate your information. Maybe you arent so useless after all. xoxo

 No.28025

>>28022
I am on Linux. Can you make an additional change to your script so it'll skip extracting the archive if the extracted content will exceed 260 characters?

 No.28027

If there was an extraction error the file will be skipped automatically. Doesnt that solve the problem?

 No.28029

>>28027
There is no such error when it fails at extracting files that exceed the 260+ file path limit which causes it to delete the archive.

Would be great if it could skip archives that have a path longer than e.g. 200 characters.

 No.28032

>>28029
It is possible but I will have you beg to me again.

 No.28035

>>28032
Ok please update the script so it can skip archives if the file path is more than 200 characters

Just to clarify, any archive gets skipped if it has one folder or file that exceeds 200 characters if extracted

 No.28051


 No.28052

You can change the MAX_FILE_LENGTH value

 No.28095

>>28051
Found some issues, it thinks everything is password protected and it doesn't do recursive extractions of the inputted path

Here's an archive that it says is password protected, I replaced "gz" with "cbz" https://gofile.io/d/w58hgX

 No.28693

polite sage but who the hell keeps ghost bumping this? whats the big idea?

 No.28697

File: 1680492251393.jpg (893.36 KB, 1080x1920, apolitical baldie.jpg)

>>28693
what are you even talking about lol

 No.28799

>>28697
Aromatic herbs & ghosts.

 No.29115

Fuck you retards. Close this thread admins

 No.29122

>>29115
You son of a bitch! I can't believe you just said that you cotton picking little!

 No.29712

>>28693
The script is broken

>>28051
Doesn't work, files are being extracted where the archives are. It should extract files from the archive to a folder named after the archive.



[Return][Go to top] [Catalog] [Post a Reply]
Delete Post [ ]
[ b / kemono / coomer ]