/
TODO
68 lines (48 loc) · 2.46 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
* [Done] Constructor for DropboxCredentials object, separate from dropbox_oauth
Document this.
* Documentation for classes, etc.
* GNUmakefile entry for generating documentation, etc.
* Handle case for dropbox_copy when a DropboxFolder is used for the cred and get the relative paths correct
Somewhat ambigiuous whether both of the from and to paths should be
relative to the dropbox folder. Allow for a absolute path name,
e.g. dropbox_copy(folder, "/a/b/c", "localNameInFolder")
Also allow to name to be omitted when folder implies the same name.
* [Finish] Class for a path/folder that extends DropboxCredentials and then
uses this to fill the path in requests
Use getPath() to compute the actual path for the requests.
[Done] sanitize_path()
Implement/Check all functions that need to use this.
[Done] up to dropbox_create_folder
* [Done] Switched to dir() function and generic
Fix default method for ls() to get correct environment
e.g. ls(2) getting the wrong environment when called from within a function.
* Fill in getPath() for corner cases (leading /, empty paths)
Fix // cases but not in URL's http://....
* [Check] Large files not uploading correctly
Use chunked upload
See dropbox_chunked.r. [Fixed] Problem with signature. Typo!
If get an error, raise an exception with the upload_id and current
offset. See errors.R but need to connect the code to the error.
* Make dropbox_save and _put use _chunked if the content is too large.
* Optionally avoid check.if.exists
Add .checkIfExists = TRUE to functions.
Perhaps use a getOption() for the default value.
* [low] Allow caching of the folder
Sync API to be informed of update.
use the hash from the /metdata request header.
* [Started] Conditions and classes for errors.
see raiseError() in errors.R
Used in some functions - grep for stop()
* Suppress warning message about "No inputs passed to form" from dropbox_acc_info
In ROAuth.
* Option for list = true for the dropbox_dir() function
* Why not have dropbox_get and _put use the same parameter name for the file.
_put has what and filename. _get has file_to_get.
Probably use filename for both.
* get content type correct for dropbox_save
* have dropbox_save handle ... as named objects
and make it behave better than save which looks for global variables.
Allow both.
[Done] Ensure dropbox_get obeys the binary
o = dropbox_get(drop, "x.rda", binary = TRUE)
* Have dropbox_get detect binary.