From 9dd1ae97373ab6591a1107773a8fdcc5b4c951e6 Mon Sep 17 00:00:00 2001 From: Serg Date: Mon, 23 Mar 2015 12:36:29 +0500 Subject: [PATCH] fixed mode/size mistake --- FTPKit/FTPHandle.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];