summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-03-15 14:39:37 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-03-15 14:39:37 (GMT)
commit5c82d13e1fbf7e7dea6849d9a9213aa3364dae9d (patch)
tree9e2edaa8270fd0ec35b55d88e99b0c9acdb1766d /Mac/Lib
parent6b498de1659247b04f7b5f097bbaf7b11bd5d8a2 (diff)
downloadcpython-5c82d13e1fbf7e7dea6849d9a9213aa3364dae9d.zip
cpython-5c82d13e1fbf7e7dea6849d9a9213aa3364dae9d.tar.gz
cpython-5c82d13e1fbf7e7dea6849d9a9213aa3364dae9d.tar.bz2
FindFolder argument is a short, not an unsigned short.
Added kLocalDomain and friends.
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/MACFS.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/Mac/Lib/MACFS.py b/Mac/Lib/MACFS.py
index 12d074f..9dbe27d 100644
--- a/Mac/Lib/MACFS.py
+++ b/Mac/Lib/MACFS.py
@@ -15,7 +15,15 @@ kIsInvisible = 0x4000
kIsAlias = 0x8000
# Constants for FindFolder
-kOnSystemDisk = 0x8000
+kOnSystemDisk = -32768 # previously was 0x8000 but that is an unsigned value whereas vRefNum is signed
+kOnAppropriateDisk = -32767 # Generally, the same as kOnSystemDisk, but it's clearer that this isn't always the 'boot' disk.
+# Folder Domains - Carbon only.
+kSystemDomain = -32766 # Read-only system hierarchy.
+kLocalDomain = -32765 # All users of a single machine have access to these resources.
+kNetworkDomain = -32764 # All users configured to use a common network server has access to these resources.
+kUserDomain = -32763 # Read/write. Resources that are private to the user.
+kClassicDomain = -32762 # Domain referring to the currently configured Classic System Folder
+
kSystemFolderType = 'macs' # the system folder
kDesktopFolderType = 'desk' # the desktop folder; objects in this folder show on the desk top.
kTrashFolderType = 'trsh' # the trash folder; objects in this folder show up in the trash