Skip to content

Commit

Permalink
fix save paths for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkiokan committed May 1, 2022
1 parent 68d91d3 commit 2c97b76
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)](#)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 5 additions & 0 deletions src-electron/src/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src-electron/src/ftp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/components/HBOperations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<q-item clickable v-close-popup @click="clearLogs">
<q-item-section>
<q-item-label> <q-icon class="q-mr-sm" name="fas fa-eraser" /> Clear Logs on PS4</q-item-label>
<q-item-label> <q-icon class="q-mr-sm" name="fas fa-eraser" /> Clear store.log on PS4</q-item-label>
</q-item-section>
</q-item>
</q-list>
Expand Down

0 comments on commit 2c97b76

Please sign in to comment.