file1.gif
是637.8 kB
。已创建file2.gif
,但会在36 bytes
处停止。
(require '[clojure.java.io :as io])
(io/copy "/var/project-dir/uploads/file1.gif"
(io/file "/var/project-dir/uploads/file2.gif"))
知道会发生什么事吗?
答案 0 :(得分:3)
您的代码插入字符串" /var/project-dir/uploads/file1.gif"进入目标文件。您需要提供实际的数据来源:
(io/copy (io/file "/var/project-dir/uploads/file1.gif")
(io/file "/var/project-dir/uploads/file2.gif"))