Permalink
Browse files

README fixes

  • Loading branch information...
1 parent 1cfa3ed commit 8d3a24211d4c9e163f06141a4e523a975791ba00 Aria Haghighi committed Jul 23, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.markdown
View
@@ -37,22 +37,22 @@ off of [daniel42](http://github.com/daniel42)'s which I've uploaded to [clojars.
; to see all operations"
; Upload local file to dropbox
- (upload-file client "/path/to-local-file.txt" "dropbox-dir/")
+ (dropbox/upload-file client "/path/to-local-file.txt" "dropbox-dir/")
; List files in root dropbox director
; returns seq of file meta-data
- (list-files client "")
+ (dropbox/list-files client "")
; Get the contents of a file as a string
- (get-file client "tmp/my-great-idea.txt")
+ (dropbox/get-file client "tmp/my-great-idea.txt")
; If you want to do several operations with the same user
; on the same thread, you can save yourself the trouble
; of using the client argument everywhere
(dropbox/with-user (new-user-client user-key user-secret)
(for [[i f] (indexed (dropbox/list-files ""))
:when (= (-> f :path (.endsWith ".txt")))]
- (copy-file (:path f) (str "my-text-files/txt-file-" i))))
+ (dropbox/copy-file (:path f) (str "my-text-files/txt-file-" i))))
# Author #

0 comments on commit 8d3a242

Please sign in to comment.