Q: Portable Way to Make Files Read Only

Efrat Regev efrat_regev at yahoo.com
Sun Feb 13 14:25:02 EST 2005


    Hello,

    I would like to recurse through a directory and make files (which match
a specific criteria) read only. From searching the Internet, I found
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303343
    which shows how to change file attributes to read only using the
win32api module. That's great, but I was hoping there's a more portable way
to do so. Is there a more portable API call to make files read only?

    Many Thanks,

    Efrat





More information about the Python-list mailing list