How to check with python if a path has the sticky bit set?
+6
A:
import os
def is_sticky(path):
return os.stat(path).st_mode & 01000 == 01000
Zach Hirsch
2009-01-06 21:26:05