From b947ffcf3f035e9a05ae7b7631cae3daadc99d05 Mon Sep 17 00:00:00 2001 From: vindarel Date: Fri, 30 Aug 2024 11:07:21 +0200 Subject: [PATCH] add cl-ftp fixes https://github.com/ciel-lang/CIEL/issues/55 --- ciel.asd | 3 +++ docs/dependencies.md | 1 + docs/libraries.md | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/ciel.asd b/ciel.asd index 7f99777..22c6e8a 100644 --- a/ciel.asd +++ b/ciel.asd @@ -59,6 +59,9 @@ :lquery :spinneret ;; lispy templates. Used in simpleHTTPserver.lisp + ;; other networking: + :cl-ftp ;; depends on only: split-sequence and usocket. + ;; GUI :nodgui ;; ltk fork with built-in themes and more widgets. diff --git a/docs/dependencies.md b/docs/dependencies.md index cee1e21..8264f7c 100644 --- a/docs/dependencies.md +++ b/docs/dependencies.md @@ -7,6 +7,7 @@ - cl-ansi-text: ANSI control string characters, focused on color - cl-cron: A simple tool that provides cron like facilities directly inside of common lisp. For this to work properly note that your lisp implementation should have support for threads - cl-csv: Facilities for reading and writing CSV format files +- cl-ftp: send or receive files from FTP. - cl-ppcre: Perl-compatible regular expression library - cl-reexport: Reexport external symbols in other packages. - clesh: Clesh is a very short program that provides diff --git a/docs/libraries.md b/docs/libraries.md index 140e7af..60301bf 100644 --- a/docs/libraries.md +++ b/docs/libraries.md @@ -842,6 +842,25 @@ We ship: +## Networking + +We ship: + +- [cl-ftp](https://github.com/pinterface/cl-ftp). This is a typical Lisp library that looks abandoned, but just works©. + +It is available under the `ftp` package name. Here's a quick snippet: + +```lisp +(ftp:with-ftp-connection (conn :hostname (get-hostname) + :username (get-ftp-username) + :password (get-password) + :passive-ftp-p t) + (ftp:store-file conn in-filename out-filanem)) +``` + +and that's it! + + ## Development ### Defining packages