How can I get the absolute path of a folder or file given its name in the Obsidian API?

Let’s say I have a folder names “Tasks”, I want to get the absolute path of it: /Misc Files/Tasks/, using just the name.