PaiGack/ftp/core does not have a README file
pub(all) suberror FtpError {
ServerError(code~ : Int, msg~ : String)
InvalidCommand(arg~ : String)
UnsupportedListLine(line~ : String)
UnsupportedListDate(field~ : String)
ParseError(msg~ : String)
RequestTimeout
} derive(Debug)pub struct Entry {
name : String
target : String
type_ : EntryType
size : UInt64
time : ZonedDateTime
} derive(Debug)type ListDateFieldpub struct Scanner {
src : String
offset : Int
}new Scanner("foo bar x y")
.next() -> "foo", position stops *after* the run of spaces
.remaining() -> " bar x y" // the leading space is kept
.next() -> "bar"
.remaining() -> "x y"fn apply_list_time(entry : Entry, year : Int, month : Int, day : Int, has_time : Bool, hour : Int, minute : Int, now : ZonedDateTime) -> Unit raise FtpErrorlet default_dial_timeout_ms : Intfn describe_error(err : Error) -> Stringfn find_date_start_pub(line : String, start : Int) -> Int?fn is_continuation(line : String) -> Boolfn is_positive_completion(code : Int) -> Boolfn is_positive_intermediate(code : Int) -> Boolfn join(base : String, name : String) -> Stringjoin("root/", "lo") == "root/lo"
join("root", "a") == "root/a"
join("root", "..") == "."
join("", "a") == "a"let max_reply_line_bytes : Intlet max_reply_lines : Intfn new_datetime(year : Int, month : Int, day : Int, hour : Int, minute : Int, zone : Zone) -> ZonedDateTime raise FtpError07-27-17 04:50PM 1264086 File.txt
11-06-16 09:31AM <DIR> Softlibdrwxr-xr-x folder 0 Aug 15 05:49 !!!-Tipp des Haus!drwxr-xr-x 3 110 1002 3 Dec 02 2009 pub
-rw-r--r-- 1 marketwired marketwired 12016 Mar 16 2016 newsml
drwxr-xr-x folder 0 Aug 15 05:49 !!!-Tipp des Haus!fn parse_ls_time(src : String, start : Int, now : ZonedDateTime) -> (ZonedDateTime, Int)? raise FtpErrorfn parse_month(name : String) -> Int?type=file;size=951;modify=20140101000000; welcome.msglet status_action_not_taken : Intlet status_closing_control_connection : Intlet status_restart_marker_answer : Intlet status_service_unavailable : Intfn status_text(code : Int) -> Stringfn warn_epsv_fallback(reason : String) -> Unitfn warn_plaintext_login(user : String) -> UnitInstall
Download zipFTP/FTPS client library for MoonBit with passive EPSV/PASV data connections, MLSD/LIST parsing, resume, directory tree walking, and explicit/implicit TLS.