summaryrefslogtreecommitdiff
path: root/Lib/xattr/constants.py
blob: 8ee1c3bb74ba71731e61516107aed891012f9b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

# Options for pathname based xattr calls
XATTR_NOFOLLOW = 0x0001 # Don't follow symbolic links

# Options for setxattr calls
XATTR_CREATE = 0x0002 # set the value, fail if attr already exists
XATTR_REPLACE = 0x0004 # set the value, fail if attr does not exist

# Set this to bypass authorization checking (eg. if doing auth-related work)
XATTR_NOSECURITY = 0x0008

XATTR_MAXNAMELEN = 127

XATTR_FINDERINFO_NAME = "com.apple.FinderInfo"

XATTR_RESOURCEFORK_NAME = "com.apple.ResourceFork"