diff --git a/FTPKit/FTPHandle.m b/FTPKit/FTPHandle.m index ae18f5f..cfab45e 100644 --- a/FTPKit/FTPHandle.m +++ b/FTPKit/FTPHandle.m @@ -53,11 +53,7 @@ - (instancetype)initWithPath:(NSString *)aPath attributes:(NSDictionary *)aAttri self.size = [[aAttributes objectForKey:(id)kCFFTPResourceSize] unsignedLongLongValue]; self.type = [[aAttributes objectForKey:(id)kCFFTPResourceType] intValue]; - if ([aPath hasPrefix:@"/"]) { - self.path = [aPath stringByAppendingPathComponent:name]; - } else { - self.path = [NSString stringWithFormat:@"%@/%@", aPath, name]; - } + self.path = [aPath stringByAppendingPathComponent:name]; } return self; }