mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 16:53:57 +00:00
feat: removing directory sync
This commit is contained in:
@@ -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 }));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user