I am creating an editor utility that validates paths on assets that use a FDirectoryPath property. I want to determine whether this FDirectoryPath points to a valid directory, to account for paths changing or mistakes.
However, the path selected by FDirectoryPath comes out to what seems to be a package-relative path, e.g. pointing to the “VRStuff” plugin content directory results in FDirectoryPath having a value of “/VRStuff/”.
How can I check that this path is located somewhere in the project?