Bugfix: fix crash when target dir isn't specified

This commit is contained in:
Starbeamrainbowlabs 2022-07-22 18:36:00 +01:00
parent 82e826fd69
commit 03e398504a
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -79,7 +79,7 @@ class RecordUniqManager {
l.log(`Done in ${pretty_ms(new Date() - time_start)}, thank you :D`);
}
#adjacent_dir(dir, target="deduped") {
#adjacent_dir(dir, tag="deduped") {
const dirname = path.dirname(dir);
const basename = path.basename(dir);
return path.join(dirname, `${basename}-${tag}`);