add HttpFS.Remove()

This commit is contained in:
S.Solodyagin
2025-10-28 12:27:44 +03:00
parent 42298fe1e3
commit f5f2b75284
4 changed files with 31 additions and 25 deletions
+2
View File
@@ -10,6 +10,7 @@ import (
"net/http"
"os"
"path/filepath"
"strings"
"sync"
"time"
)
@@ -277,6 +278,7 @@ func (s *LocalStorage) getMutex(name string) *sync.Mutex {
// GetFullName возвращает полный путь к файлу в хранилище.
func (s *LocalStorage) GetFullName(name string) string {
name = strings.TrimPrefix(name, "/")
if len(name) < 27 {
return ""
}