如何在python中检查路径是否有粘滞位?

And*_*cia 2 python

如果路径设置了粘滞位,如何检查python?

Zac*_*sch 8

import os
def is_sticky(path):
    return os.stat(path).st_mode & 01000 == 01000
Run Code Online (Sandbox Code Playgroud)