File: constants.py

package info (click to toggle)
python-xattr 0.6.4-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 196 kB
  • ctags: 158
  • sloc: ansic: 835; python: 575; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 489 bytes parent folder | download | duplicates (5)
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"