mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add file.is_writeable
This commit is contained in:
parent
d55d02ac9d
commit
bc4aea67c9
4 changed files with 29 additions and 0 deletions
|
|
@ -42,3 +42,9 @@ end
|
|||
debug.log("delete file")
|
||||
file.remove("config:binary")
|
||||
assert(not file.exists("config:binary"))
|
||||
|
||||
debug.log("checking entry points for writeability")
|
||||
assert(file.is_writeable("config:"))
|
||||
assert(file.is_writeable("export:"))
|
||||
assert(not file.is_writeable("user:"))
|
||||
assert(not file.is_writeable("res:"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue