/usr/lib/python2.7/dist-packages/chef/utils/file.py is in python-chef 0.2.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | import os
def walk_backwards(path):
while 1:
yield path
next_path = os.path.dirname(path)
if path == next_path:
break
path = next_path
|