Arduino FTP wifi client

How to download or upload a file from a FTP server over wifi with an arduino as a client? Are there are no APIs such as where x acts as the client. Client does not support open() since open is not a member. All the FTP solutions i found where either related to SD card or ethernet. PS: i have a wifi module (ESP8266) connected onto the arduino.