ObjFW  Diff

Differences From Artifact [c5306f3b5d]:

To Artifact [d64d08867d]:


934
935
936
937
938
939
940
941

942
943
944

945
946
947
948
949
950
951
952

953
954
955

956
957
958

959
960
961

962
963
964

965
966
967

968
969
970
971
972
973
974
934
935
936
937
938
939
940

941
942
943

944
945
946
947
948
949
950
951

952
953
954

955
956
957

958
959
960

961
962
963

964
965
966

967
968
969
970
971
972
973
974







-
+


-
+







-
+


-
+


-
+


-
+


-
+


-
+







- (unsigned int)retainCount
{
	return OF_RETAIN_COUNT_MAX;
}
@end

@implementation OFDictionary (FileAttributes)
- (uintmax_t)fileSize
- (unsigned long long)fileSize
{
	return [attributeForKeyOrException(self, of_file_attribute_key_size)
	    uIntMaxValue];
	    unsignedLongLongValue];
}

- (of_file_type_t)fileType
{
	return attributeForKeyOrException(self, of_file_attribute_key_type);
}

- (uint16_t)filePOSIXPermissions
- (unsigned long)filePOSIXPermissions
{
	return [attributeForKeyOrException(self,
	    of_file_attribute_key_posix_permissions) uInt16Value];
	    of_file_attribute_key_posix_permissions) unsignedLongValue];
}

- (uint32_t)filePOSIXUID
- (unsigned long)filePOSIXUID
{
	return [attributeForKeyOrException(self,
	    of_file_attribute_key_posix_uid) uInt32Value];
	    of_file_attribute_key_posix_uid) unsignedLongValue];
}

- (uint32_t)filePOSIXGID
- (unsigned long)filePOSIXGID
{
	return [attributeForKeyOrException(self,
	    of_file_attribute_key_posix_gid) uInt32Value];
	    of_file_attribute_key_posix_gid) unsignedLongValue];
}

- (OFString *)fileOwner
{
	return attributeForKeyOrException(self, of_file_attribute_key_owner);
}