constantine-fry / rebekka

Rebekka - FTP/FTPS client in Swift.
BSD 2-Clause "Simplified" License
87 stars 56 forks source link

Feature Request: Deletion #7

Closed jshaw1109 closed 8 years ago

jshaw1109 commented 8 years ago

Is there an API to delete remote directory/file?

srolesen commented 8 years ago

yeah create and delete is in there

jshaw1109 commented 8 years ago

What's the API call to delete a remote file? I don't see them in there. Btw, thx for the nice and simple API

I've been looking I see the 4 public methods:

public func list(path: String, completionHandler: ResourceResultCompletionHandler) public func createDirectory(path: String, completionHandler: BooleanResultCompletionHandler) public func download(path: String, completionHandler: FileURLResultCompletionHandler) public func upload(fileURL: NSURL, path: String, completionHandler: BooleanResultCompletionHandler)

constantine-fry commented 8 years ago

I'm sorry. This library uses CFFTPStream which has no support for FTP deletion commands.

asifbilal786 commented 8 years ago

I think @jshaw1109 is right. There should be a FTP delete method otherwise this control is incomplete. @Constantine-Fry , you should find a way to add the deletion functionality to make it complete.