Required Instance Methodtuist.filesystem 0.7.9FileSystem

locateTraversingUp(from:relativePath:)

Given a path, it traverses the hierarcy until it finds a file or directory whose absolute path is formed by concatenating the looked up path and the given relative path. The search stops when the file-system root path, /, is reached.

FileSystem.swift:262
func locateTraversingUp(from: AbsolutePath, relativePath: RelativePath) async throws -> AbsolutePath?

Parameters

from

The path to traverse plan. This one will also be checked against.

relativePath

The relative path to append to every traversed path.

Returns

The found path. Otherwise it returns nil.