func (c *AzureClient) OpenWriteCloser(name string) (io.WriteCloser, error) {
	exist, err := c.Exists(name)
	if err != nil {
		return nil, err
	}
	containerName, blobName, err := convertToAzurePath(name)
	if err != nil {
		return nil, err
	}
	if !exist {
		_, err = c.blobClient.CreateContainerIfNotExists(containerName, storage.ContainerAccessTypeBlob)
		if err != nil {
			return nil, err
		}
		err = c.blobClient.CreateBlockBlob(containerName, blobName)
		if err != nil {
			return nil, err
		}
	}
	return &AzureFile{
		path:   name,
		logger: log.New(os.Stdout, "", log.Lshortfile|log.LstdFlags),
		client: c.blobClient,
	}, nil
}
//AzureClient -> OpenWriteCloser function
// If not exist, Create corresponding Container and blob.
> OpenWriteCloser function
If not exist, Create corresponding Container and blob.
// AzureClient - > OpenWriteCloser function // If not exist Create corresponding Container and blob .
func (c *AzureClient) OpenWriteCloser(name string) (io.WriteCloser, error) {
	exist, err := c.Exists(name)
	if err != nil {
		return nil, err
	}
	containerName, blobName, err := convertToAzurePath(name)
	if err != nil {
		return nil, err
	}
	if !exist {
		_, err = c.blobClient.CreateContainerIfNotExists(containerName, storage.ContainerAccessTypeBlob)
		if err != nil {
			return nil, err
		}
		err = c.blobClient.CreateBlockBlob(containerName, blobName)
		if err != nil {
			return nil, err
		}
	}
	return &AzureFile{
		path:   name,
		logger: log.New(os.Stdout, "", log.Lshortfile|log.LstdFlags),
		client: c.blobClient,
	}, nil
}
func ( c * AzureClient ) OpenWriteCloser ( name string ) ( io . WriteCloser , error ) { exist , err := c . Exists ( name ) if err != nil { return nil , err } containerName , blobName , err := convertToAzurePath ( name ) if err != nil { return nil , err } if ! exist { _ , err = c . blobClient . CreateContainerIfNotExists ( containerName , storage . ContainerAccessTypeBlob ) if err != nil { return nil , err } err = c . blobClient . CreateBlockBlob ( containerName , blobName ) if err != nil { return nil , err } } return & AzureFile { path : name , logger : log . New ( os . Stdout , " " , log . Lshortfile | log . LstdFlags ) , client : c . blobClient , } , nil }
> OpenWriteCloser function
If not exist, Create corresponding Container and blob.
> OpenWriteCloser function If not exist Create corresponding Container and blob .