Turn Read-Only flag off on Win files?

Bob Hyatt rhhyatt at charter.net
Sat Sep 30 11:32:27 EDT 2000


All,

I am attempting to learn Python and came up with a 'project'.

I want to point the program at a directory on a Win98 Disk, and for each
file in all the directories under this directory, turn off the read-only
flag.

I thought this would be an easy item, but I find I can't even get started. I
am completely confused as to how to:

A. Tell it to turn off the read-only file attribute
B. Loop through all files in the directory
C. Loop through all directories under the primary directory

Appreciate any hints.

Bob





More information about the Python-list mailing list