package sfml

  1. Overview
  2. Docs
type ftp
type response
type directoryResponse
type listingResponse
type status =
  1. | RestartMarkerReply
  2. | ServiceReadySoon
  3. | DataConnectionAlreadyOpened
  4. | OpeningDataConnection
  5. | Ok
  6. | PointlessCommand
  7. | SystemStatus
  8. | DirectoryStatus
  9. | FileStatus
  10. | HelpMessage
  11. | SystemType
  12. | ServiceReady
  13. | ClosingConnection
  14. | DataConnectionOpened
  15. | ClosingDataConnection
  16. | EnteringPassiveMode
  17. | LoggedIn
  18. | FileActionOk
  19. | DirectoryOk
  20. | NeedPassword
  21. | NeedAccountToLogIn
  22. | NeedInformation
  23. | ServiceUnavailable
  24. | DataConnectionUnavailable
  25. | TransferAborted
  26. | FileActionAborted
  27. | LocalError
  28. | InsufficientStorageSpace
  29. | CommandUnknown
  30. | ParametersUnknown
  31. | CommandNotImplemented
  32. | BadCommandSequence
  33. | ParameterNotImplemented
  34. | NotLoggedIn
  35. | NeedAccountToStore
  36. | FileUnavailable
  37. | PageTypeUnknown
  38. | NotEnoughMemory
  39. | FilenameNotAllowed
  40. | InvalidResponse
  41. | ConnectionFailed
  42. | ConnectionClosed
  43. | InvalidFile
type transferMode =
  1. | Binary
  2. | Ascii
  3. | Ebcdic
val create : unit -> ftp
val destroy : ftp -> unit
val connect : ftp -> server:SFIpAddress.t -> ?port:int -> ?timeout:SFTime.t -> unit -> response
val loginAnonymous : ftp -> response
val login : ftp -> userName:string -> password:string -> response
val disconnect : ftp -> response
val keepAlive : ftp -> response
val changeDirectory : ftp -> directory:string -> response
val parentDirectory : ftp -> response
val createDirectory : ftp -> name:string -> response
val deleteDirectory : ftp -> name:string -> response
val renameFile : ftp -> file:string -> newName:string -> response
val deleteFile : ftp -> name:string -> response
val upload : ftp -> localFile:string -> destPath:string -> mode:transferMode -> response
val download : ftp -> distantFile:string -> destPath:string -> mode:transferMode -> response
module Response : sig ... end
val getDirectoryListing : ftp -> directory:string -> listingResponse
module ListingResponse : sig ... end
val getWorkingDirectory : ftp -> directoryResponse
module DirectoryResponse : sig ... end
val sendCommand : ftp -> command:string -> parameter:string -> response
OCaml

Innovation. Community. Security.