Jump to content




Archive library


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

#1 Aptik

  • Members
  • 32 posts
  • LocationUkraine

Posted 12 April 2013 - 11:17 PM

Include LArc library (or similar) to new versions of CraftOS.
In this case will be easy to destribute programs which uses several files to run.

#2 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 12 April 2013 - 11:23 PM

can't be added as it includes c modules.

#3 mlaga97

  • Members
  • 4 posts

Posted 26 June 2013 - 03:37 AM

An alternate solution would be to use any of the several archiving tools written in Lua dispersed throughout the forum or write one yourself. I had a had to write one of my own ( I should probably upload that... ). I am quite sure cc-get has to have a pretty good implementation of some tool and might be worth looking into.

#4 ChunLing

  • Members
  • 2,027 posts

Posted 26 June 2013 - 08:36 AM

Don't a lot of people write simple installers to download multiple files?

#5 Pharap

  • Members
  • 816 posts
  • LocationEngland

Posted 29 June 2013 - 01:02 PM

If you can find me the source code of the zip algorithms I could try porting it to Lua if it's not too hard. Or at least try and get a project team together to attempt it.

Edit:
Scratch that, the link you gave actually has most of the lua code in it: https://code.google..../filesystem.lua

Figure out which bits are implemented in C, chances are you may not need any modifications to ComputerCraft to be able to do it, it might be a matter of swapping out functions.

eg
function isdir(name)
  checklfs()
  local mode = lfs.attributes(name)
  return mode == 'directory'
end

Is already implemented in ComputerCraft as fs.isDir

Edited by Pharap, 29 June 2013 - 01:07 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users