Advertisement
Guest User

Untitled

a guest
Aug 1st, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.53 KB | None | 0 0
  1. (load "~/quicklisp/setup.lisp")
  2. (ql:quickload :cl-ftp)
  3. (defpackage :example
  4.   (:use :cl
  5.         :ftp))
  6. (in-package :example)
  7.  
  8. ; Works
  9. (with-ftp-connection (conn :hostname "ftp.ncdc.noaa.gov" :passive-ftp-p t)
  10.   (retrieve-file conn "pub/data/noaa/readme.txt" "./readme.txt"))
  11.  
  12. ; Does not work - I am expecting an ftp:ftp-error in this case but instead it hangs forever
  13. (with-ftp-connection (conn :hostname "ftp.ncdc.noaa.gov" :passive-ftp-p t)
  14.   (retrieve-file conn "pub/data/noaa/fake-file-does-not-exist.txt" "./file.txt"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement