don't assign path for different storage

This commit is contained in:
antelle 2016-04-07 08:11:59 +03:00
parent 2d4280c5ef
commit 09cb45198c
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ var AppModel = Backbone.Model.extend({
var storage = options.storage || file.get('storage');
var path = options.path || file.get('path');
var opts = options.opts || file.get('opts');
if (storage && Storage[storage].getPathForName && !path) {
if (storage && Storage[storage].getPathForName && (!path || storage !== file.get('storage'))) {
path = Storage[storage].getPathForName(file.get('name'));
}
logger.info('Sync started', storage, path, options);