Required Instance Methodtuist.filesystem 0.7.9FileSystem

exists(_:isDirectory:)

It checks for the presence of files and directories.

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

Parameters

path

The path to be checked.

isDirectory

True if it should be checked that the path represents a directory.

Returns

Returns true if a file or directory (depending on the isDirectory argument) is present.