Home Search

DriveWorks Pro 22
AZPPGetFileShareDirectories

Send Feedback

AZPPGetFileShareDirectories

Returns an array of all directories in an Azure File Share Directory.

Syntax

AZPPGetFileShareDirectories([Connection String], [File Share Name], [Directory Path], [Include Additional Data])

Where:

Connection String determines the Azure Storage Account to try and connect to.

See the Microsoft article Configure Azure Storage connection strings for more information.

File Share Name determines the Azure File Share to get directory information from.

Directory Path determines the Azure File Share directory to get directory information from. Blank or empty values will get sub-directories from the root of the File Share.

Include Additional Data determines if additional data for directory information should be included.

The data will automatically refresh when a Specification is started.

Examples

Example 1 - Getting Directory Information at Root

RuleResultMeaning
AZPPGetFileShareDirectories("DefaultEndpointsProtocol=https; AccountName=MyExampleName; AccountKey=MyExampleAccountKey; EndpointSuffix=core.windows.net", "MyFileShare", "", True){"Name", "LastModifiedUTC", "Path", "ETag"; "ExampleDirectory", "15/06/2022 11:09:32", "ExampleDirectory", """0x8DA4EBF86844F17""";}This is the array that will be created with the properties for each directory that exists in the root of the File Share.

Example Result as a Table

NameLastModifiedUTCPathEtag
ExampleDirectory15/06/2022 11:09:32ExampleDirectory"""0x8DA4EBF86844F17"""

Example 2 - Getting Directory Information from Sub-Directories

RuleResultMeaning
AZPPGetFileShareDirectories("DefaultEndpointsProtocol=https; AccountName=MyExampleName; AccountKey=MyExampleAccountKey; EndpointSuffix=core.windows.net", "MyFileShare", "MySubDirectory", True){"Name", "LastModifiedUTC", "Path", "ETag"; "SubDir", "04/10/2022 10:38:43", "MySubDirectory/SubDir", """0x8DAA5F49BFB97D5"""}This is the array that will be created with the properties for each directory that exists in the specified sub-directory of the File Share.

Example Result as a Table

NameLastModifiedUTCPathEtag
SubDir15/06/2022 11:09:32MySubDirectory/SubDir"""0x8DAA5F49BFB97D5"""

More Information

DriveWorks can be hosted on Microsoft Azure, for more information see Microsoft Azure.