add file.is_writeable

This commit is contained in:
MihailRis
2024-12-24 08:08:44 +03:00
parent d55d02ac9d
commit bc4aea67c9
4 changed files with 29 additions and 0 deletions
+6
View File
@@ -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:"))