diff Lib/stat.py @ 71031:529e26aa4fa3 3.2

Issue #8746: Correct faulty configure checks so that os.chflags() and os.lchflags() are once again built on systems that support these functions (*BSD and OS X). Also add new stat file flags for OS X (UF_HIDDEN and UF_COMPRESSED). Also add additional tests for os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
author Ned Deily <nad@acm.org>
date Tue, 28 Jun 2011 00:00:28 -0700
parents 36e296e66d21
children 2a695cbdf090
line wrap: on
line diff
--- a/Lib/stat.py	Mon Jun 27 23:12:20 2011 -0700
+++ b/Lib/stat.py	Tue Jun 28 00:00:28 2011 -0700
@@ -87,6 +87,8 @@
 UF_APPEND    = 0x00000004
 UF_OPAQUE    = 0x00000008
 UF_NOUNLINK  = 0x00000010
+UF_COMPRESSED = 0x00000020  # OS X: file is hfs-compressed
+UF_HIDDEN    = 0x00008000   # OS X: file should not be displayed
 SF_ARCHIVED  = 0x00010000
 SF_IMMUTABLE = 0x00020000
 SF_APPEND    = 0x00040000