Skip to content

Commit

Permalink
Merge pull request #129 from rolldone/working
Browse files Browse the repository at this point in the history
Improvement
  • Loading branch information
rolldone authored Aug 9, 2022
2 parents 210616f + 1170169 commit e7ad992
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/load_save/services/LoadSaveDataService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export default BaseService.extend<LoadSaveServiceInterface>({
if (statSync(_sync_collection_files[a]) != null) {
let _file_resolve = path.resolve("", _sync_collection_files[a]);
let _readFile = readFileSync(_file_resolve);
writeFileSync(upath.normalize(this._sync_collection_src + '/' + whatSyncName + '/' + _sync_collection_files[a]), _readFile, "utf8");
filendir.writeFileSync(upath.normalize(this._sync_collection_src + '/' + whatSyncName + '/' + _sync_collection_files[a]), _readFile, "utf8");
}
break;
}
Expand All @@ -273,7 +273,7 @@ export default BaseService.extend<LoadSaveServiceInterface>({
type: "all",
depth: 0, // One level
});

// Keep cleaning first
for (var a = 0; a < _existFilesSrc.length; a++) {
if (lstatSync(_existFilesSrc[a].fullPath).isDirectory() == true) {
Expand Down Expand Up @@ -316,7 +316,7 @@ export default BaseService.extend<LoadSaveServiceInterface>({
let _file_resolve = path.resolve("", _sync_collection_files[a]);
let _readFile = readFileSync(_file_resolve);
let _filePath = upath.normalize(this._sync_collection_src + '/' + whatSyncName + '/' + _sync_collection_files[a]);
writeFileSync(_filePath, _readFile, "utf8");
filendir.writeFileSync(_filePath, _readFile, "utf8")
}
break;
}
Expand Down

0 comments on commit e7ad992

Please sign in to comment.