mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-13 03:32:13 +00:00
feat: removing directory sync
This commit is contained in:
parent
b99dbe83e2
commit
9391b7e6c9
1 changed files with 5 additions and 2 deletions
|
@ -36,6 +36,11 @@ const replaceLudusaviBackupWithCurrentUser = (
|
|||
// TODO: Only works on Windows
|
||||
const usersDirPath = path.join(gameBackupPath, "drive-C", "Users");
|
||||
|
||||
fs.rmSync(gameBackupPath, {
|
||||
recursive: true,
|
||||
force: true,
|
||||
});
|
||||
|
||||
fs.renameSync(
|
||||
path.join(usersDirPath, path.basename(backupHomeDir)),
|
||||
path.join(usersDirPath, path.basename(currentHomeDir))
|
||||
|
@ -55,8 +60,6 @@ const replaceLudusaviBackupWithCurrentUser = (
|
|||
};
|
||||
});
|
||||
|
||||
console.log(backups);
|
||||
|
||||
fs.writeFileSync(mappingYamlPath, YAML.stringify({ ...manifest, backups }));
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue