$ npm install @jiaminghi/ftp
import { put, mkDir } from '@jiaminghi/ftp'
// do something
type put = (ftp: Client, src: string, dest: string) => Promise<boolean>
type rmDir = (ftp: Client, src: string, recusive = true) => Promise<boolean>
type mkDir = (ftp: Client, src: string, recusive = true) => Promise<boolean>
type getList = (ftp: Client, src: string) => Promise<Client.ListingElement[] | false>
type emptyDir = (ftp: Client, src: string, except: string[] = []) => Promise<boolean>
type deleteFile = (ftp: Client, src: string) => Promise<boolean>