Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c82d13

Browse files
committed
FindFolder argument is a short, not an unsigned short.
Added kLocalDomain and friends.
1 parent 6b498de commit 5c82d13

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Mac/Lib/MACFS.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@
1515
kIsAlias = 0x8000
1616

1717
# Constants for FindFolder
18-
kOnSystemDisk = 0x8000
18+
kOnSystemDisk = -32768 # previously was 0x8000 but that is an unsigned value whereas vRefNum is signed
19+
kOnAppropriateDisk = -32767 # Generally, the same as kOnSystemDisk, but it's clearer that this isn't always the 'boot' disk.
20+
# Folder Domains - Carbon only.
21+
kSystemDomain = -32766 # Read-only system hierarchy.
22+
kLocalDomain = -32765 # All users of a single machine have access to these resources.
23+
kNetworkDomain = -32764 # All users configured to use a common network server has access to these resources.
24+
kUserDomain = -32763 # Read/write. Resources that are private to the user.
25+
kClassicDomain = -32762 # Domain referring to the currently configured Classic System Folder
26+
1927
kSystemFolderType = 'macs' # the system folder
2028
kDesktopFolderType = 'desk' # the desktop folder; objects in this folder show on the desk top.
2129
kTrashFolderType = 'trsh' # the trash folder; objects in this folder show up in the trash

0 commit comments

Comments
 (0)