Skip to content

werand/ftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# ftp

Thin wrapper around the apache commons ftp-client.

## Usage

Usage example:

(def *connection* {
                 :url "ftp.server.url",
                 :user "username",
                 :password "password",
                 :transfer-mode :binary})
;; Transfer-mode may be one of :binary or :ascii if none is specified it will be :binary 

(with-ftp *connection*
  ((exists-remotely? "some/file")))

;; Binding of ftp-client to the ftp-client, so any method can be called on the client-api
(with-ftp-client ftp-client *connection*
  (.logout ftp-client)
  (prn (exists-remotely? "some/file")))

The last example will throw a SocketException, because the connection is closed when then exists-remotely method is called ;-)

## License

Copyright (C) 2012 Andreas Werner

Distributed under the Eclipse Public License, the same as Clojure.

About

Thin clojure wrapper for the apache net ftp-client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published