diff --git a/FTPKit/FTPHandle.m b/FTPKit/FTPHandle.m index ae18f5f..be2cdc2 100644 --- a/FTPKit/FTPHandle.m +++ b/FTPKit/FTPHandle.m @@ -47,7 +47,7 @@ - (instancetype)initWithPath:(NSString *)aPath attributes:(NSDictionary *)aAttri self.modified = [aAttributes objectForKey:(id)kCFFTPResourceModDate]; self.group = [aAttributes objectForKey:(id)kCFFTPResourceGroup]; self.link = [aAttributes objectForKey:(id)kCFFTPResourceLink]; - self.mode = [[aAttributes objectForKey:(id)kCFFTPResourceSize] intValue]; + self.mode = [[aAttributes objectForKey:(id)kCFFTPResourceMode] intValue]; self.name = [aAttributes objectForKey:(id)kCFFTPResourceName]; self.owner = [aAttributes objectForKey:(id)kCFFTPResourceOwner]; self.size = [[aAttributes objectForKey:(id)kCFFTPResourceSize] unsignedLongLongValue];