find_container_of


Description:

public Folder? find_container_of (string folder_path)

Finds the container folder of a given path by walking up the directory tree.

Starting from the given path, walks up using dirname and checks if each path exists in the folder_map. Returns the first matching folder found, or null if no folder in the path exists in the project.

Parameters:

folder_path

The path to find the container folder for

Returns:

The Folder object if found, null otherwise