EDM115 / unzip-bot

Telegram bot deployable to heroku that can extract every archive !
https://t.me/unzip_edm115bot
MIT License
91 stars 125 forks source link

[BUG] TAR archives broken #244

Closed EDM115 closed 7 months ago

EDM115 commented 10 months ago

tar.gz when uploaded only give access to the tar inside (without extension)
might be the case with other tar shit

EDM115 commented 7 months ago

well actually url file are still broken, as downloaded as archive_from_ID.gz
might as well just keep the og name, idk why it's renamed in the first place

EDM115 commented 7 months ago
2024-01-18 21:43:18,480 - INFO - unzipper - asyncio_3 - 
7-Zip [64] 17.05 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.05 (locale=C.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)

Scanning the drive for archives:
1 file, 5153 bytes (6 KiB)

Testing archive: /app/Downloaded/854158484/archive_from_854158484.gz
--
Path = /app/Downloaded/854158484/archive_from_854158484.gz
Type = gzip
Headers Size = 10

Everything is Ok

Size:       31232
Compressed: 5153
2024-01-18 21:43:18,562 - INFO - unzipper - asyncio_1 - 
7-Zip [64] 17.05 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.05 (locale=C.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)

Scanning the drive for archives:
1 file, 5153 bytes (6 KiB)

Extracting archive: /app/Downloaded/854158484/archive_from_854158484.gz
--
Path = /app/Downloaded/854158484/archive_from_854158484.gz
Type = gzip
Headers Size = 10

Everything is Ok

Size:       31232
Compressed: 5153
2024-01-18 21:43:18,574 - INFO - unzipper - asyncio_3 - 
2024-01-18 21:43:19,064 - ERROR - unzipper - MainThread - [Errno 2] No such file or directory: '/app/Downloaded/1612911250/extracted'
2024-01-18 21:43:19,296 - ERROR - unzipper - MainThread - [Errno 2] No such file or directory: '/app/Downloaded/854158484/extracted'

why tf do I rename ?