Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fs = require("filesystem")
- local term = require("term")
- if not term.isAvailable() then
- return
- end
- local version = 0
- local cureentTabe = "null"
- local tabs = {}
- local packages = {}
- function loadPackages()
- if(not fs.exists("/etc/blockio/")) then
- fs.makeDirectory("/etc/blockio/")
- end
- packageFiles = fs.list("/etc/blockio/")
- for packageFile in packageFiles do
- print(packageFile)
- local path,name,extension = string.match(packageFile, "(.-)([^/]-([^/%.]+))$")
- name = string.gsub(name,".lua","")
- print(name)
- print(extension)
- if(extension == "lua") then
- packages[name] = require("/etc/blockio/"..name)
- end
- for index,value in ipairs(t) do
- print(index)
- end
- end
- end
- loadPackages()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement