Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI('json')
- -- see if the file exists
- function file_exists(file)
- local f = fs.open(file, "rb")
- if f then f:close() end
- return f ~= nil
- end
- fs.makeDir("/records")
- local filename = "/records/_buildzones-list.yaml"
- print(file_exists(filename))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement