Skip to content

Path handles in a different ways in FTPHandle initializers #23

@ReDetection

Description

@ReDetection

Take a look

- (instancetype)initWithPath:(NSString *)aPath attributes:(NSDictionary *)aAttributes {
        // ...
        self.name = [aAttributes objectForKey:(id)kCFFTPResourceName];
        self.path = [aPath stringByAppendingPathComponent:name];

and

- (instancetype)initWithPath:(NSString *)aPath type:(FTPHandleType)aType {
        // ...
        self.name = [aPath lastPathComponent];
        self.path = aPath;

So the former is about folder path, the latter — filepath.
Strange, isn't it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions