Share via


NSFileManager.FileExists Method

Definition

Overloads

FileExists(String)

[Foundation.Export("fileExistsAtPath:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool FileExists(string path);
[<Foundation.Export("fileExistsAtPath:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member FileExists : string -> bool
override this.FileExists : string -> bool

Parameters

path
String

Returns

Attributes

Applies to

FileExists(String, Boolean)

[Foundation.Export("fileExistsAtPath:isDirectory:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool FileExists(string path, ref bool isDirectory);
[<Foundation.Export("fileExistsAtPath:isDirectory:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member FileExists : string * bool -> bool
override this.FileExists : string * bool -> bool

Parameters

path
String
isDirectory
Boolean

Returns

Attributes

Applies to