-
Hi, this is a nice piece of kit you got here. Makes development outside of Minecraft far easier and simpler. I'm trying to have a program write a file to my hard drive through ComputerCraft's The documentation states that you can specify an optional third argument when mounting a real folder to the shell to specify whether its read-only or not, but the format of that third argument is not stated. I've tried passing 'false' as the third argument for 'readOnly', but no luck. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
CraftOS-PC has a |
Beta Was this translation helpful? Give feedback.
CraftOS-PC has a
mount_mode
configuration option to control whether you can write to mounts. By default, it's set toro strict
, which means writing is entirely disabled, even if thereadOnly
parameter isfalse
. This is done for security reasons (mainly to avoid arbitrary scripts from modifying files outside the sandbox). You can runconfig set mount_mode ro
to switch it to mount read-only by default, but still allowing you to enable writing (or userw
to make it writable by default, but this is a bit dangerous).