func Create(ctx context.Context, URL string, mode os.FileMode, isDir bool, options ...storage.Option) error {
	filePath := Path(URL)
	if isDir {
		mode = mode | os.ModeDir
		if err := EnsureParentPathExists(filePath, mode); err != nil {
			return err
		}
		if stat, _ := os.Stat(filePath); stat != nil {
			return os.Chmod(filePath, mode)
		}
		return os.MkdirAll(filePath, mode)
	}
	return Upload(ctx, URL, mode, strings.NewReader(""), options...)
}
Create creates a new file or directory
package file
import (
	"context"
	"github.com/viant/afs/storage"
	"os"
	"strings"
)