Hello, just wondering how I would go about making a file read-only, and
writeable only through my program.
=D Thanks!
Hello, just wondering how I would go about making a file read-only, and
writeable only through my program.
=D Thanks!
El Miércoles, 25 de Junio de 2008, Justin To escribió:
Hello, just wondering how I would go about making a file read-only, and
writeable only through my program.
In which file system and operating system?
You need a file system supporting user/group permissions (as Unix/Linux
any
filesystem). Windows with FATXX doesn’t support it.
Then you must use File methods about file permissions.
On 25.06.2008 01:40, Justin To wrote:
Hello, just wondering how I would go about making a file read-only, and
writeable only through my program.
http://www.ruby-doc.org/stdlib/libdoc/fileutils/rdoc/classes/FileUtils.html#M000714
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs