Permalink
Browse files

Fixed bug with Dropbox client which was causing issues when turning o…

…n local editing
  • Loading branch information...
davidmerfield committed Jan 8, 2019
1 parent 330eadf commit dee0ccb200148ab7ceb97ad596ef83fd29369782
Showing with 10 additions and 2 deletions.
  1. +5 −1 app/clients/dropbox/remove.js
  2. +5 −1 app/clients/dropbox/write.js
@@ -19,7 +19,11 @@ function remove(blogID, path, callback) {
database.get(blogID, function(err, account) {
client = createClient(account.access_token);
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
.filesDelete({
@@ -18,7 +18,11 @@ function write(blogID, path, contents, callback) {

client = createClient(account.access_token);
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
.filesUpload({

0 comments on commit dee0ccb

Please sign in to comment.