Jump to content




Packager - Compress a folder into a single executable file

utility

  • You cannot reply to this topic
21 replies to this topic

#21 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

Posted 29 March 2015 - 08:25 PM

View PostCreator, on 29 March 2015 - 11:40 AM, said:

Packager 70: too long without yielding.

The folder I was trying to compress is this one.

If you want to get the folder structure, type this:

pastebin run 2DMDuHci TheOS

~Creator
The code doesn't yield, so it probably won't compress files larger than 100-200kB.
I just found out that fs.open changes the bytes above 128, so that sucks.
Do you have any binary files in your OS?
I was able to compress the folder but it couldn't extract.
I'll probably make an update in the future, but now I'm busy, sorry.

#22 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 29 March 2015 - 09:24 PM

There is an "rb" and a "wb" file open mode for reading and writing in binary.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users