diff --git a/README.md b/README.md index d768d72..6aafb83 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # HB-Store CDN Server [![ko-fi](https://img.shields.io/badge/Buy%20me%20a%20Shisha%20on-Ko--fi-red)](https://ko-fi.com/M4M082WK8) [![os](https://img.shields.io/badge/platform-windows%20%7C%20macos%20%7C%20linux-lightgrey)](#) -[![commits_since_release](https://img.shields.io/github/commits-since/gkiokan/hb-store-cdn-server/v1.7.0)](#) +[![commits_since_release](https://img.shields.io/github/commits-since/gkiokan/hb-store-cdn-server/v1.7.1)](#) [![version](https://img.shields.io/github/package-json/v/gkiokan/hb-store-cdn-server)](#) [![downloads](https://img.shields.io/github/downloads/gkiokan/hb-store-cdn-server/total)](#) [![last_commit](https://img.shields.io/github/last-commit/gkiokan/hb-store-cdn-server)](#) diff --git a/package.json b/package.json index 0e9b8d1..4d6c6df 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hb-store-cdn-server", - "version": "1.7.0", + "version": "1.7.1", "description": "HB-Store CDN Server", "productName": "HB-Store CDN Server", "homepage": "https://gkiokan.net", diff --git a/src-electron/src/db.js b/src-electron/src/db.js index ac8f4f6..a026214 100644 --- a/src-electron/src/db.js +++ b/src-electron/src/db.js @@ -40,6 +40,11 @@ export default { renewDB(){ let clean = this.getCleanStorePath() let store = this.getStorePath() + let dir = path.dirname(store) + + if (!fs.existsSync(dir)) { + fs.mkdirSync(dir); + } try { fs.copyFileSync(clean, store) diff --git a/src-electron/src/ftp.js b/src-electron/src/ftp.js index 2628f6c..9d2d27a 100644 --- a/src-electron/src/ftp.js +++ b/src-electron/src/ftp.js @@ -93,6 +93,11 @@ export default { async download(target, source){ let client = await this.getClient() let size = await client.size(source) + let dir = path.dirname(target) + + if (!fs.existsSync(dir)) { + fs.mkdirSync(dir); + } if(size === 0){ console.log(source, size) diff --git a/src/components/HBOperations.vue b/src/components/HBOperations.vue index 174b335..ec42761 100644 --- a/src/components/HBOperations.vue +++ b/src/components/HBOperations.vue @@ -27,7 +27,7 @@ - Clear Logs on PS4 + Clear store.log on PS4