< Back
Test-AzureRmDataLakeStoreItem
Post
NAME Test-AzureRmDataLakeStoreItem
SYNOPSIS
Tests the existence of a file or folder in Data Lake Store.
SYNTAX
Test-AzureRmDataLakeStoreItem [-Account] <String> [-Path] <DataLakeStorePathInstance> [[-PathType] {Any | File | Folder}] [-DefaultProfile
<IAzureContextContainer>] [<CommonParameters>]
DESCRIPTION
The Test-AzureRmDataLakeStoreItem cmdlet tests the existence of a file or folder in Data Lake Store.
PARAMETERS
-Account <String>
Specifies the name of the Data Lake Store account.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Path <DataLakeStorePathInstance>
Specifies the Data Lake Store path of the item to test, starting with the root directory (/).
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-PathType <PathType>
Specifies the type of item to test. The acceptable values for this parameter are:
- Any
- File
- Folder
Required? false
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
bool
True or false indicating the existence of the specified file or folder.
NOTES
Example 1: Test a file
PS C:\\>Test-AzureRmDataLakeStoreItem -AccountName "ContosoADL" -Path "/MyFiles/Test.csv"
This command tests whether the file Test.csv exists in the ContosoADL account.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... estoreitem
Export-AzureRmDataLakeStoreItem
Get-AzureRmDataLakeStoreItem
Import-AzureRmDataLakeStoreItem
Join-AzureRmDataLakeStoreItem
Move-AzureRmDataLakeStoreItem
Remove-AzureRmDataLakeStoreItem
SYNOPSIS
Tests the existence of a file or folder in Data Lake Store.
SYNTAX
Test-AzureRmDataLakeStoreItem [-Account] <String> [-Path] <DataLakeStorePathInstance> [[-PathType] {Any | File | Folder}] [-DefaultProfile
<IAzureContextContainer>] [<CommonParameters>]
DESCRIPTION
The Test-AzureRmDataLakeStoreItem cmdlet tests the existence of a file or folder in Data Lake Store.
PARAMETERS
-Account <String>
Specifies the name of the Data Lake Store account.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Path <DataLakeStorePathInstance>
Specifies the Data Lake Store path of the item to test, starting with the root directory (/).
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-PathType <PathType>
Specifies the type of item to test. The acceptable values for this parameter are:
- Any
- File
- Folder
Required? false
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
bool
True or false indicating the existence of the specified file or folder.
NOTES
Example 1: Test a file
PS C:\\>Test-AzureRmDataLakeStoreItem -AccountName "ContosoADL" -Path "/MyFiles/Test.csv"
This command tests whether the file Test.csv exists in the ContosoADL account.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... estoreitem
Export-AzureRmDataLakeStoreItem
Get-AzureRmDataLakeStoreItem
Import-AzureRmDataLakeStoreItem
Join-AzureRmDataLakeStoreItem
Move-AzureRmDataLakeStoreItem
Remove-AzureRmDataLakeStoreItem