[Tutor] problem with os.chmod()
Tim Peters
Python Tutor list" <tutor@python.org
Wed, 12 Sep 2001 02:02:53 -0400
[lonetwin]
> I've got a problem with the os.chmod() function
> ...
> dirmode = 744
> flmode = 700
Those are decimal literals, but arguments to chmod are usually expressed in
octal notation. Try
dirmode = 0744
flmode = 0700
instead and I bet you'll be happier.
> ...
> P.S: sincere sympathies to all Americans and all the victims of
> terrorism on this dark day.
Relax, they didn't get to Python's chmod() implementation yet <wink>.
hard-to-know-what-they-hoped-to-accomplish-but-the-consequences-
won't-please-them-ly y'rs - tim