Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
207d43b13f | ||
|
|
9f9a85d302 |
6
.github/workflows/beta-docker.yml
vendored
6
.github/workflows/beta-docker.yml
vendored
@@ -18,12 +18,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: '1.24'
|
|
||||||
cache: true
|
|
||||||
|
|
||||||
- name: Calculate beta version
|
- name: Calculate beta version
|
||||||
id: calculate_version
|
id: calculate_version
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
6
.github/workflows/release-docker.yml
vendored
6
.github/workflows/release-docker.yml
vendored
@@ -19,12 +19,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: '1.24'
|
|
||||||
cache: true
|
|
||||||
|
|
||||||
- name: Get tag name
|
- name: Get tag name
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -52,9 +53,14 @@ func (m *Manager) mountWithRetry(mountPath, provider, webdavURL string, maxRetri
|
|||||||
func (m *Manager) performMount(mountPath, provider, webdavURL string) error {
|
func (m *Manager) performMount(mountPath, provider, webdavURL string) error {
|
||||||
cfg := config.Get()
|
cfg := config.Get()
|
||||||
|
|
||||||
// Create mount directory
|
// Create mount directory(except on Windows, cos winFSP handles it)
|
||||||
if err := os.MkdirAll(mountPath, 0755); err != nil {
|
if runtime.GOOS != "windows" {
|
||||||
return fmt.Errorf("failed to create mount directory %s: %w", mountPath, err)
|
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
|
// Check if already mounted
|
||||||
|
|||||||
Reference in New Issue
Block a user