Skip to content

Commit

Permalink
fix: consolidate saves tracks with absolute paths
Browse files Browse the repository at this point in the history
fixes #49
  • Loading branch information
shayded-exe committed Jun 19, 2021
1 parent e9e1e65 commit 98c4e3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/views/consolidate-command.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ export default class ConsolidateCommand extends BaseCommand {
for (const item of found) {
const targetPath = path.resolve(this.targetFolder, item.track.filename);
item.track.path = makePathUnix(targetPath);
item.track.path = makePathUnix(
path.relative(this.libraryFolder, targetPath),
);
// no overwrite
// if (path.normalize(item.oldPath) === path.normalize(item.track.path)) {
// continue;
Expand Down

0 comments on commit 98c4e3b

Please sign in to comment.