你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DataLakeStoreFileSystemClient.TestFileOrFolderExistence Method

Definition

Checks if file or folder exists and also returns the type of the path

public bool TestFileOrFolderExistence (string path, string accountName, out Microsoft.Azure.DataLake.Store.DirectoryEntryType itemType);
member this.TestFileOrFolderExistence : string * string * DirectoryEntryType -> bool
Public Function TestFileOrFolderExistence (path As String, accountName As String, ByRef itemType As DirectoryEntryType) As Boolean

Parameters

path
String

Full path of file or directory

accountName
String

Account name

itemType
DirectoryEntryType

Type of the directory entry

Returns

True of the path exists else false

Applies to