1## File Storage Directories SDK for API version 2018-03-28
2
3This package allows you to interact with the Directories File Storage API
4
5### Supported Authorizers
6
7* Azure Active Directory (for the Resource Endpoint `https://storage.azure.com`)
8* SharedKeyLite (Blob, File & Queue)
9
10### Example Usage
11
12```go
13package main
14
15import (
16	"context"
17	"fmt"
18	"time"
19
20	"github.com/Azure/go-autorest/autorest"
21	"github.com/tombuildsstuff/giovanni/storage/2018-03-28/file/directories"
22)
23
24func Example() error {
25	accountName := "storageaccount1"
26    storageAccountKey := "ABC123...."
27    shareName := "myshare"
28    directoryName := "myfiles"
29
30    storageAuth := autorest.NewSharedKeyLiteAuthorizer(accountName, storageAccountKey)
31    directoriesClient := directories.New()
32    directoriesClient.Client.Authorizer = storageAuth
33
34    ctx := context.TODO()
35    metadata := map[string]string{
36    	"hello": "world",
37    }
38    if _, err := directoriesClient.Create(ctx, accountName, shareName, directoryName, metadata); err != nil {
39        return fmt.Errorf("Error creating Directory: %s", err)
40    }
41
42    return nil
43}
44```