2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +08:00

feat: 备份优化

This commit is contained in:
2026-01-22 03:39:43 +08:00
parent 0440f33cfb
commit 403126efaf
5 changed files with 31 additions and 43 deletions

View File

@@ -81,7 +81,7 @@ func (l *Local) Put(file string, content io.Reader) error {
}
// 预检查空间
if err := l.preCheckPath(fullPath); err != nil {
if err := l.preCheckPath(filepath.Dir(fullPath)); err != nil {
return fmt.Errorf("pre check path failed: %w", err)
}