Skip to content

Commit

Permalink
Fixed bug with Dropbox client which was causing issues when turning o…
Browse files Browse the repository at this point in the history
…n local editing
  • Loading branch information
davidmerfield committed Jan 8, 2019
1 parent 330eadf commit dee0ccb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/clients/dropbox/remove.js
Expand Up @@ -19,7 +19,11 @@ function remove(blogID, path, callback) {
database.get(blogID, function(err, account) { database.get(blogID, function(err, account) {
client = createClient(account.access_token); client = createClient(account.access_token);
pathOnDropbox = join(account.folder || "/", path); pathOnDropbox = join(account.folder || "/", path);
pathOnBlot = localPath(blogID, path);
// We must lowercase this since localPath no longer
// does and files for the Dropbox client are stored
// in the folder with a lowercase path.
pathOnBlot = localPath(blogID, path).toLowerCase();


client client
.filesDelete({ .filesDelete({
Expand Down
6 changes: 5 additions & 1 deletion app/clients/dropbox/write.js
Expand Up @@ -18,7 +18,11 @@ function write(blogID, path, contents, callback) {


client = createClient(account.access_token); client = createClient(account.access_token);
pathInDropbox = join(account.folder || "/", path); pathInDropbox = join(account.folder || "/", path);
pathOnBlot = localPath(blogID, path);
// We must lowercase this since localPath no longer
// does and files for the Dropbox client are stored
// in the folder with a lowercase path.
pathOnBlot = localPath(blogID, path).toLowerCase();


client client
.filesUpload({ .filesUpload({
Expand Down

0 comments on commit dee0ccb

Please sign in to comment.