Skip to main content

ResolveRecentlyOpenedTopFolder

Function ResolveRecentlyOpenedTopFolder 

Source
fn ResolveRecentlyOpenedTopFolder() -> Option<PathBuf>
Expand description

Read ~/.land/workspaces/RecentlyOpened.json’s top workspace entry and resolve it to a directory path. Mirrors the probe used by Binary/Build/WindowBuild.rs::BuildInitialUrl so the boot-seeded workspace folder agrees with the URL the webview actually loads. Returns None when the file is missing/malformed, the entry has no resolvable path, the path doesn’t exist on disk, or it isn’t a directory.