共用方式為


Server.ParentDirectoryExists(String) Method

Definition

Checks whether the parent directory of the specified file exists

public bool ParentDirectoryExists (string filePath);
member this.ParentDirectoryExists : string -> bool
Public Function ParentDirectoryExists (filePath As String) As Boolean

Parameters

filePath
String

The file path

Returns

A boolean value indicating whether the parent directory of specified file exists

Applies to