Changes for clojure.java.io/copy

boxie on Mon, 11 Feb 2013
(ns your-project
  (:require [clojure.java.io :as io]))

(defn copy-file [source-path dest-path]
  (io/copy (io/file source-path) (io/file dest-path)))

(copy-file "/home/username/squirrel.txt" "/home/username/burt-reynolds.txt")
boxie on Mon, 11 Feb 2013
(ns your-project
  (:use [clojure.java.io :only (file copy)]))

(defn copy-file [source-path dest-path]
  (copy (file source-path) (file dest-path)))

(copy-file "/home/username/squirrel.txt" "/home/username/burt-reynolds.txt")
defn on Fri, 27 May 2011
(ns your-project
  (:use [clojure.java.io :only (file copy)]))

(defn copy-file [src-path dest-path]
  (copy (file source-path) (file dest-path)))

(copy-file "/home/username/squirrel.txt" "/home/username/burt-reynolds.txt")