ElixirDropbox v0.0.7 ElixirDropbox.Files

Link to this section Summary

Functions

Copy a file or folder to a different location in the user’s Dropbox. If the source path is a folder all its contents will be copied

Create folder returns map

Create folder returns Folder struct

Delete folder returns map

Delete folder returns Folder struct

Move a file or folder to a different location in the user’s Dropbox. If the source path is a folder all its contents will be moved

Create a new file with the contents provided in the request

Link to this section Functions

Link to this function copy(client, from_path, to_path)

Copy a file or folder to a different location in the user’s Dropbox. If the source path is a folder all its contents will be copied.

Example

ElixirDropbox.Files.copy(client, “/Temp/first”, “/Tmp/second”)

More info at: https://www.dropbox.com/developers/documentation/http/documentation#files-copy_v2

Link to this function create_folder(client, path)
create_folder(Client, binary) :: Map

Create folder returns map

Example

ElixirDropbox.Files.create_folder client, “/Path”

More info at: https://www.dropbox.com/developers/documentation/http/documentation#files-create_folder

Link to this function create_folder_to_struct(client, path)
create_folder_to_struct(Client, binary) :: Map

Create folder returns Folder struct

Example

ElixirDropbox.Files.create_folder_to_struct client, “/Path”

More info at: https://www.dropbox.com/developers/documentation/http/documentation#files-create_folder

Link to this function delete_folder(client, path)

Delete folder returns map

## Example

ElixirDropbox.Files.delete_folder client, “/Path”

More info at: https://www.dropbox.com/developers/documentation/http/documentation#files-delete

Link to this function delete_folder_to_struct(client, path)

Delete folder returns Folder struct

Example

ElixirDropbox.Files.delete_folder_to_struct client, “/Path”

More info at: https://www.dropbox.com/developers/documentation/http/documentation#files-delete

Link to this function download(client, path)
Link to this function get_metadata(client, path, include_media_info \\ false)
Link to this function get_preview(client, path)
Link to this function get_thumbnail(client, path, format \\ "jpeg", size \\ "w64h64")
Link to this function move(client, from_path, to_path)

Move a file or folder to a different location in the user’s Dropbox. If the source path is a folder all its contents will be moved.

Example

ElixirDropbox.Files.move(client, “/Homework/math”, “/Homework/algebra”)

More info at: https://www.dropbox.com/developers/documentation/http/documentation#files-move

Link to this function restore(client, path, rev)
Link to this function upload(client, path, file, mode \\ "add", autorename \\ true, mute \\ false)

Create a new file with the contents provided in the request.

Example

ElixirDropbox.Files.upload client, “/mypdf.pdf”, “/mypdf.pdf”

More info at: https://www.dropbox.com/developers/documentation/http/documentation#files-upload