Required Instance Methodtuist.filesystem 0.7.9FileSystem

replace(_:with:)

Given a path, it replaces it with the file or directory at the other path.

FileSystem.swift:246
func replace(_ to: AbsolutePath, with: AbsolutePath) async throws

Parameters

to

The path to be replaced.

with

The path to the directory or file to replace the other path with.