阿里云oss

This commit is contained in:
lzh
2025-07-15 16:51:07 +08:00
parent fc6ddf1fa5
commit c214b6c94a
6 changed files with 284 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
package cf
import "testing"
func TestEnsureDirExists(t *testing.T) {
url := "/test"
err := EnsureDirExists(url)
if err != nil {
t.Errorf("EnsureDirExists() error = %v", err)
}
}
func TestEnsureParentDirExists(t *testing.T) {
filePath := "/test/test1/test.txt"
err := EnsureParentDirExists(filePath)
if err != nil {
t.Errorf("EnsureDirExists() error = %v", err)
}
}