mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 03:36:47 -04:00
avoid error when edit is trying to check readonly-ness of virtual folders
This commit is contained in:
parent
8594a3e2c7
commit
6f3475a353
@ -10,7 +10,7 @@ end
|
|||||||
|
|
||||||
local filename = shell.resolve(args[1])
|
local filename = shell.resolve(args[1])
|
||||||
|
|
||||||
local readonly = options.r or fs.get(filename).isReadOnly()
|
local readonly = options.r or fs.get(filename) == nil or fs.get(filename).isReadOnly()
|
||||||
|
|
||||||
if fs.isDirectory(filename) or readonly and not fs.exists(filename) then
|
if fs.isDirectory(filename) or readonly and not fs.exists(filename) then
|
||||||
print("file not found")
|
print("file not found")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user