Navigation Menu

Skip to content

Commit

Permalink
Fix to toRootPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit Apple committed Aug 30, 2013
1 parent 2370c55 commit 26224d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/kuduSync.js
Expand Up @@ -532,7 +532,7 @@ function kuduSyncDirectory(from, to, fromRootPath, toRootPath, manifest, outMani
});
}, function () {
return Utils.mapSerialized(from.subDirectoriesList(), function (fromSubDirectory) {
var toSubDirectory = new DirectoryInfo(pathUtil.join(to.path(), fromSubDirectory.name()), fromSubDirectory.rootPath());
var toSubDirectory = new DirectoryInfo(pathUtil.join(to.path(), fromSubDirectory.name()), toRootPath);
return kuduSyncDirectory(fromSubDirectory, toSubDirectory, fromRootPath, toRootPath, manifest, outManifest, ignoreList, whatIf);
});
});
Expand Down
2 changes: 1 addition & 1 deletion lib/FileUtils.ts
Expand Up @@ -265,7 +265,7 @@ function kuduSyncDirectory(from: DirectoryInfo, to: DirectoryInfo, fromRootPath:
return Utils.mapSerialized(
from.subDirectoriesList(),
(fromSubDirectory: DirectoryInfo) => {
var toSubDirectory = new DirectoryInfo(pathUtil.join(to.path(), fromSubDirectory.name()), fromSubDirectory.rootPath());
var toSubDirectory = new DirectoryInfo(pathUtil.join(to.path(), fromSubDirectory.name()), toRootPath);
return kuduSyncDirectory(
fromSubDirectory,
toSubDirectory,
Expand Down

0 comments on commit 26224d6

Please sign in to comment.