2 Commits
beta ... v1.1.6

Author SHA1 Message Date
Mukhtar Akere
207d43b13f fix issuses with rclone on windows
Some checks failed
ci / deploy (push) Successful in 1m6s
Release Docker Build / docker (push) Has been cancelled
GoReleaser / goreleaser (push) Has been cancelled
2025-10-27 11:56:23 +01:00
Mukhtar Akere
9f9a85d302 fix gh workflow 2025-10-27 11:49:12 +01:00
3 changed files with 9 additions and 15 deletions

View File

@@ -18,12 +18,6 @@ jobs:
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
cache: true
- name: Calculate beta version
id: calculate_version
run: |

View File

@@ -19,12 +19,6 @@ jobs:
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
cache: true
- name: Get tag name
id: get_tag
run: |

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"os"
"os/exec"
"runtime"
"strconv"
"time"
@@ -52,9 +53,14 @@ func (m *Manager) mountWithRetry(mountPath, provider, webdavURL string, maxRetri
func (m *Manager) performMount(mountPath, provider, webdavURL string) error {
cfg := config.Get()
// Create mount directory
if err := os.MkdirAll(mountPath, 0755); err != nil {
return fmt.Errorf("failed to create mount directory %s: %w", mountPath, err)
// Create mount directory(except on Windows, cos winFSP handles it)
if runtime.GOOS != "windows" {
if err := os.MkdirAll(mountPath, 0755); err != nil {
return fmt.Errorf("failed to create mount directory %s: %w", mountPath, err)
}
} else {
// In fact, delete the mount if it exists, to avoid issues
_ = os.Remove(mountPath) // Ignore error
}
// Check if already mounted