Required Instance Methodtuist.filesystem 0.7.9FileSystem

exists(_:)

It checks for the presence of a file or directory.

FileSystem.swift:82
func exists(_ path: AbsolutePath) async throws -> Bool

Parameters

path

The path to be checked.

Returns

Returns true if a file or directory exists.