UtahDave/salt — comment on commit 0daf69df96612f8e6028564064daa9bff098a937
File: salt/modules/win_file.py line 140
By SEJeff:

The ```mode = 0777``` line might not do what you think it is doing. In python, a leading zero means the number is octal.

>>> print 777
777
>>> print 0777
511
>>>