See the names of all the directories and files that the app is allowed to read and/or write in the iPhone.
2011-11-10 15:42:18.004 Attributes[16565:207] home directory == "/Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A" 2011-11-10 15:42:18.007 Attributes[16565:207] Attributes.app 2011-11-10 15:42:18.008 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Attributes.app 2011-11-10 15:42:18.010 Attributes[16565:207] NSFileSize 204 2011-11-10 15:42:18.010 Attributes[16565:207] NSFilePosixPermissions 493 2011-11-10 15:42:18.011 Attributes[16565:207] NSFileReferenceCount 6 2011-11-10 15:42:18.011 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.012 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.012 Attributes[16565:207] NSFileType NSFileTypeDirectory 2011-11-10 15:42:18.012 Attributes[16565:207] NSFileSystemFileNumber 3560795 2011-11-10 15:42:18.013 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.013 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:16 +0000 2011-11-10 15:42:18.014 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.014 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:03 +0000 2011-11-10 15:42:18.014 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.016 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.016 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.017 Attributes[16565:207] Attributes.app/Attributes 2011-11-10 15:42:18.017 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Attributes.app/Attributes 2011-11-10 15:42:18.017 Attributes[16565:207] NSFileSize 16840 2011-11-10 15:42:18.018 Attributes[16565:207] NSFilePosixPermissions 493 2011-11-10 15:42:18.018 Attributes[16565:207] NSFileReferenceCount 1 2011-11-10 15:42:18.019 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.019 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.019 Attributes[16565:207] NSFileType NSFileTypeRegular 2011-11-10 15:42:18.020 Attributes[16565:207] NSFileSystemFileNumber 3560796 2011-11-10 15:42:18.020 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.021 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:03 +0000 2011-11-10 15:42:18.021 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.021 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:03 +0000 2011-11-10 15:42:18.022 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.022 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.022 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.023 Attributes[16565:207] Attributes.app/en.lproj 2011-11-10 15:42:18.023 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Attributes.app/en.lproj 2011-11-10 15:42:18.024 Attributes[16565:207] NSFileSize 102 2011-11-10 15:42:18.024 Attributes[16565:207] NSFilePosixPermissions 493 2011-11-10 15:42:18.024 Attributes[16565:207] NSFileReferenceCount 3 2011-11-10 15:42:18.025 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.025 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.025 Attributes[16565:207] NSFileType NSFileTypeDirectory 2011-11-10 15:42:18.026 Attributes[16565:207] NSFileSystemFileNumber 3560797 2011-11-10 15:42:18.026 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.027 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:03 +0000 2011-11-10 15:42:18.027 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.027 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:03 +0000 2011-11-10 15:42:18.028 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.028 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.028 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.029 Attributes[16565:207] Attributes.app/en.lproj/InfoPlist.strings 2011-11-10 15:42:18.029 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Attributes.app/en.lproj/InfoPlist.strings 2011-11-10 15:42:18.029 Attributes[16565:207] NSFileSize 42 2011-11-10 15:42:18.030 Attributes[16565:207] NSFilePosixPermissions 420 2011-11-10 15:42:18.030 Attributes[16565:207] NSFileReferenceCount 1 2011-11-10 15:42:18.030 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.031 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.031 Attributes[16565:207] NSFileType NSFileTypeRegular 2011-11-10 15:42:18.031 Attributes[16565:207] NSFileSystemFileNumber 3560798 2011-11-10 15:42:18.032 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.032 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:03 +0000 2011-11-10 15:42:18.032 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.033 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:03 +0000 2011-11-10 15:42:18.033 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.033 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.034 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.034 Attributes[16565:207] Attributes.app/Info.plist 2011-11-10 15:42:18.034 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Attributes.app/Info.plist 2011-11-10 15:42:18.035 Attributes[16565:207] NSFileSize 832 2011-11-10 15:42:18.035 Attributes[16565:207] NSFilePosixPermissions 420 2011-11-10 15:42:18.036 Attributes[16565:207] NSFileReferenceCount 1 2011-11-10 15:42:18.036 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.036 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.036 Attributes[16565:207] NSFileType NSFileTypeRegular 2011-11-10 15:42:18.037 Attributes[16565:207] NSFileSystemFileNumber 3560963 2011-11-10 15:42:18.037 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.037 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:02 +0000 2011-11-10 15:42:18.038 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.038 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:02 +0000 2011-11-10 15:42:18.038 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.039 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.039 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.039 Attributes[16565:207] Attributes.app/PkgInfo 2011-11-10 15:42:18.040 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Attributes.app/PkgInfo 2011-11-10 15:42:18.040 Attributes[16565:207] NSFileSize 8 2011-11-10 15:42:18.041 Attributes[16565:207] NSFilePosixPermissions 420 2011-11-10 15:42:18.041 Attributes[16565:207] NSFileReferenceCount 1 2011-11-10 15:42:18.041 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.042 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.042 Attributes[16565:207] NSFileType NSFileTypeRegular 2011-11-10 15:42:18.042 Attributes[16565:207] NSFileSystemFileNumber 3560800 2011-11-10 15:42:18.043 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.043 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:02 +0000 2011-11-10 15:42:18.043 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.044 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:02 +0000 2011-11-10 15:42:18.044 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.044 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.045 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.045 Attributes[16565:207] Documents 2011-11-10 15:42:18.045 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Documents 2011-11-10 15:42:18.046 Attributes[16565:207] NSFileSize 68 2011-11-10 15:42:18.046 Attributes[16565:207] NSFilePosixPermissions 493 2011-11-10 15:42:18.046 Attributes[16565:207] NSFileReferenceCount 2 2011-11-10 15:42:18.047 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.047 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.047 Attributes[16565:207] NSFileType NSFileTypeDirectory 2011-11-10 15:42:18.048 Attributes[16565:207] NSFileSystemFileNumber 3560804 2011-11-10 15:42:18.048 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.048 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:04 +0000 2011-11-10 15:42:18.048 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.053 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:04 +0000 2011-11-10 15:42:18.053 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.054 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.054 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.054 Attributes[16565:207] Library 2011-11-10 15:42:18.055 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Library 2011-11-10 15:42:18.055 Attributes[16565:207] NSFileSize 136 2011-11-10 15:42:18.055 Attributes[16565:207] NSFilePosixPermissions 493 2011-11-10 15:42:18.056 Attributes[16565:207] NSFileReferenceCount 4 2011-11-10 15:42:18.056 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.056 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.057 Attributes[16565:207] NSFileType NSFileTypeDirectory 2011-11-10 15:42:18.057 Attributes[16565:207] NSFileSystemFileNumber 3560805 2011-11-10 15:42:18.061 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.061 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:04 +0000 2011-11-10 15:42:18.062 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.062 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:04 +0000 2011-11-10 15:42:18.063 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.063 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.063 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.064 Attributes[16565:207] Library/Caches 2011-11-10 15:42:18.064 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Library/Caches 2011-11-10 15:42:18.064 Attributes[16565:207] NSFileSize 102 2011-11-10 15:42:18.065 Attributes[16565:207] NSFilePosixPermissions 493 2011-11-10 15:42:18.065 Attributes[16565:207] NSFileReferenceCount 3 2011-11-10 15:42:18.066 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.066 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.067 Attributes[16565:207] NSFileType NSFileTypeDirectory 2011-11-10 15:42:18.067 Attributes[16565:207] NSFileSystemFileNumber 3560809 2011-11-10 15:42:18.067 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.068 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:16 +0000 2011-11-10 15:42:18.068 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.068 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:04 +0000 2011-11-10 15:42:18.068 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.069 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.069 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.069 Attributes[16565:207] Library/Caches/Snapshots 2011-11-10 15:42:18.070 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Library/Caches/Snapshots 2011-11-10 15:42:18.070 Attributes[16565:207] NSFileSize 68 2011-11-10 15:42:18.071 Attributes[16565:207] NSFilePosixPermissions 493 2011-11-10 15:42:18.071 Attributes[16565:207] NSFileReferenceCount 2 2011-11-10 15:42:18.071 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.072 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.072 Attributes[16565:207] NSFileType NSFileTypeDirectory 2011-11-10 15:42:18.073 Attributes[16565:207] NSFileSystemFileNumber 3560946 2011-11-10 15:42:18.073 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.073 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:16 +0000 2011-11-10 15:42:18.074 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.074 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:16 +0000 2011-11-10 15:42:18.130 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.131 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.131 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.132 Attributes[16565:207] Library/Preferences 2011-11-10 15:42:18.132 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Library/Preferences 2011-11-10 15:42:18.132 Attributes[16565:207] NSFileSize 136 2011-11-10 15:42:18.133 Attributes[16565:207] NSFilePosixPermissions 493 2011-11-10 15:42:18.133 Attributes[16565:207] NSFileReferenceCount 4 2011-11-10 15:42:18.133 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.134 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.134 Attributes[16565:207] NSFileType NSFileTypeDirectory 2011-11-10 15:42:18.134 Attributes[16565:207] NSFileSystemFileNumber 3560806 2011-11-10 15:42:18.135 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.135 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:16 +0000 2011-11-10 15:42:18.135 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.136 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:04 +0000 2011-11-10 15:42:18.136 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.136 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.137 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.137 Attributes[16565:207] Library/Preferences/.GlobalPreferences.plist 2011-11-10 15:42:18.137 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Library/Preferences/.GlobalPreferences.plist 2011-11-10 15:42:18.138 Attributes[16565:207] NSFileSize 108 2011-11-10 15:42:18.138 Attributes[16565:207] NSFilePosixPermissions 493 2011-11-10 15:42:18.138 Attributes[16565:207] NSFileReferenceCount 1 2011-11-10 15:42:18.139 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.139 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.139 Attributes[16565:207] NSFileType NSFileTypeSymbolicLink 2011-11-10 15:42:18.140 Attributes[16565:207] NSFileSystemFileNumber 3560964 2011-11-10 15:42:18.140 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.140 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:16 +0000 2011-11-10 15:42:18.141 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.141 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:16 +0000 2011-11-10 15:42:18.141 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.142 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.142 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.142 Attributes[16565:207] Library/Preferences/com.apple.PeoplePicker.plist 2011-11-10 15:42:18.143 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/Library/Preferences/com.apple.PeoplePicker.plist 2011-11-10 15:42:18.143 Attributes[16565:207] NSFileSize 112 2011-11-10 15:42:18.143 Attributes[16565:207] NSFilePosixPermissions 493 2011-11-10 15:42:18.144 Attributes[16565:207] NSFileReferenceCount 1 2011-11-10 15:42:18.144 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.144 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.145 Attributes[16565:207] NSFileType NSFileTypeSymbolicLink 2011-11-10 15:42:18.145 Attributes[16565:207] NSFileSystemFileNumber 3560965 2011-11-10 15:42:18.145 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.146 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:16 +0000 2011-11-10 15:42:18.146 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.146 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:16 +0000 2011-11-10 15:42:18.147 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.147 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.147 Attributes[16565:207] --------------------------------------------- 2011-11-10 15:42:18.148 Attributes[16565:207] tmp 2011-11-10 15:42:18.148 Attributes[16565:207] /Users/nyuuser/Library/Application Support/iPhone Simulator/5.0/Applications/6E355CFD-0ABC-42F8-9413-1DD2F46FDD6A/tmp 2011-11-10 15:42:18.148 Attributes[16565:207] NSFileSize 68 2011-11-10 15:42:18.149 Attributes[16565:207] NSFilePosixPermissions 493 2011-11-10 15:42:18.149 Attributes[16565:207] NSFileReferenceCount 2 2011-11-10 15:42:18.149 Attributes[16565:207] NSFileGroupOwnerAccountID 20 2011-11-10 15:42:18.150 Attributes[16565:207] NSFileOwnerAccountName nyuuser 2011-11-10 15:42:18.150 Attributes[16565:207] NSFileType NSFileTypeDirectory 2011-11-10 15:42:18.150 Attributes[16565:207] NSFileSystemFileNumber 3560803 2011-11-10 15:42:18.151 Attributes[16565:207] NSFileExtensionHidden 0 2011-11-10 15:42:18.151 Attributes[16565:207] NSFileModificationDate 2011-11-10 20:42:04 +0000 2011-11-10 15:42:18.151 Attributes[16565:207] NSFileGroupOwnerAccountName staff 2011-11-10 15:42:18.152 Attributes[16565:207] NSFileCreationDate 2011-11-10 20:42:04 +0000 2011-11-10 15:42:18.152 Attributes[16565:207] NSFileSystemNumber 234881026 2011-11-10 15:42:18.152 Attributes[16565:207] NSFileOwnerAccountID 502 2011-11-10 15:42:18.153 Attributes[16565:207] ---------------------------------------------
bc
(the binary calculator) in
Terminal.app
to convert the
NSFilePosixPermissions
from decimal to octal.
For example, decimal 493 = octal 755 and means
rwxr-xr-x
.
bc obase=8 493 755 control-d
To see the permission bits in octal,
change the loop that prints the attributes to the following.
%lo
stands for “long octal”.
while ((key = [e nextObject]) != nil) { id attribute = [attributes objectForKey: key]; if ([key isEqualToString: @"NSFilePosixPermissions"]) { unsigned long permissions = [attribute unsignedLongValue]; NSLog(@"%@ %lo", key, permissions); } else { NSLog(@"%@ %@", key, attribute); } }