-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9578df
commit a6aa4a7
Showing
3 changed files
with
47 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import Client from 'ftp'; | ||
declare function getList(ftp: Client, src: string): Promise<Client.ListingElement[] | false>; | ||
declare function rmDir(ftp: Client, src: string, recusive?: boolean): Promise<boolean>; | ||
declare function deleteFile(ftp: Client, src: string): Promise<boolean>; | ||
declare function emptyDir(ftp: Client, src: string, except?: string[]): Promise<boolean>; | ||
declare function put(ftp: Client, src: string, dest: string): Promise<boolean>; | ||
declare function mkDir(ftp: Client, src: string, recusive?: boolean): Promise<boolean>; | ||
declare function getList(ftp: Client, src: string): Promise<Client.ListingElement[]>; | ||
declare function rmDir(ftp: Client, src: string, recusive?: boolean): Promise<void>; | ||
declare function deleteFile(ftp: Client, src: string): Promise<void>; | ||
declare function emptyDir(ftp: Client, src: string, except?: string[]): Promise<void>; | ||
declare function put(ftp: Client, src: string, dest: string): Promise<void>; | ||
declare function mkDir(ftp: Client, src: string, recusive?: boolean): Promise<void>; | ||
export { put, rmDir, mkDir, getList, emptyDir, deleteFile }; |