On Tue, Sep 3, 2013 at 8:23 AM, Jacob Peck <[email protected]> wrote:

> Just a curious question.  I could always rely on the filesystem to mark a
> file read-only, but I'm just wondering if there's a mechanism within Leo to
> mark a file as read-only?
>

A curious question, indeed.  

Why would you want to do that?  You would run the risk of losing whatever
changes you made to the outline.

If you must, you could use os.chmod.  See
http://docs.python.org/2/library/os.html
Note the following comment::

QQQ
Although Windows supports chmod(), you can only set the file’s read-only
flag with it (via the stat.S_IWRITE and stat.S_IREAD constants or a
corresponding integer value). All other bits are ignored.
QQQ

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to