copy(clojure.contrib.duck-streams)

Copies input to output. Returns nil. Input may be an InputStream, Reader, File, byte[], or String. Output may be an OutputStream, Writer, or File.

Does not close any streams except those it opens itself (on a File).

Writing a File fails if the parent directory does not exist.

; clojure/contrib/duck_streams.clj:291
(defmulti
  copy
  (fn [input output] [(type input) (type output)]))

Copyright (c) Rich Hickey. All rights reserved.

The use and distribution terms for this software are covered by the Eclipse Public License 1.0, which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.