delete files/dirs with read-only mode

Steven Taschuk staschuk at telusplanet.net
Thu May 1 15:45:23 EDT 2003


Quoth David Broadwell:
> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=mailman.1026489500.25324.python-list%40python.org&rnum=1&prev=/groups%3Fq%3Dwindows%2Bcommand%2Bgroup:comp.lang.python.*%26hl%3Den%26lr%3D%26ie%3DUTF-8%26group%3Dcomp.lang.python.*%26selm%3Dmailman.1026489500.25324.python-list%2540python.org%26rnum%3D1

That URL can be much reduced:

    http://groups.google.com/groups?threadm=mailman.1026489500.25324.python-list%40python.org

is sufficient.  The rest of the original is stuff specific to your
machine/settings (hl=en and ie=UTF-8) and stuff specific to how
you browsed to that message (everything after &prev=).  (It shows,
for example, that you did a search in groups comp.lang.python.*
for messages including the words "windows" and "command".)

> The command(s) you need in this case is 'attrib /?', can't remove the files
> easily till they are not read only.

And on Unixy systems, chmod.  I don't know offhand of a
platform-independent way of removing the read-only attribute,
sadly.

-- 
Steven Taschuk                staschuk at telusplanet.net
"I tried to be pleasant and accommodating, but my head
 began to hurt from his banality."   -- _Seven_ (1996)





More information about the Python-list mailing list