Skip to content
Browse files

Small bug in client.clj

  • Loading branch information...
1 parent f1f94f5 commit 500e6950570fe0511a8ed8450d264a2ab263f0db Aria Haghighi committed
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/clj_dropbox/client.clj
View
12 src/clj_dropbox/client.clj
@@ -97,15 +97,15 @@
NOTE: It seems like Dropbox will create the directory structure
of the remote path if it doesn't exist."
-
([client remote-dir local-path]
(let [mode (-> client :opts :mode)
local-file (io/file local-path) file-name (.getName local-file)]
- (ensure-content
- (-> ((:req-fn client) :POST (str (constants/drbx-files-host mode) remote-dir)
- {:file file-name}
- :BODY (doto (MultipartEntity.)
- (.addPart "file" (FileBody. local-file))))))))
+
+ (-> ((:req-fn client) :POST (str (constants/drbx-files-host mode) remote-dir)
+ {:file file-name}
+ :BODY (doto (MultipartEntity.)
+ (.addPart "file" (FileBody. local-file))))
+ ensure-content)))
([remote-dir local-path] (upload-file *client* remote-dir local-path)))
(defn list-files

0 comments on commit 500e695

Please sign in to comment.
Something went wrong with that request. Please try again.