pub struct Store {
root: PathBuf,
}Expand description
The server’s profile tree, under forge’s app-support browser/ root.
Fields§
§root: PathBufImplementations§
Source§impl Store
impl Store
pub fn at(root: &Path) -> Self
Sourcepub fn org_profile(&self, key: &ProfileKey) -> PathBuf
pub fn org_profile(&self, key: &ProfileKey) -> PathBuf
One org profile’s directory: its cef cache and its uploads.
Sourcepub fn client_root() -> Option<PathBuf>
pub fn client_root() -> Option<PathBuf>
The client’s own browser tree on this machine, when there is one: the app-support directory its bundle identifier owned. The one path the server derives outside its own app-support, and only to delete the client’s dead caches.
Sourcepub fn delete_legacy(&self) -> Result<Legacy, String>
pub fn delete_legacy(&self) -> Result<Legacy, String>
Delete the legacy trees once: the server’s own pre-org store
(shared/ and profiles/<name>/cef/) and the client’s old CEF
caches (browser/cef-profile and browser/profiles/<name>/cef).
The client’s logins go with them and are entered again per org;
a copy would preserve the single-profile tree the org model replaces.
A stray file is not a profile; the new org directories hold their
cef/ one level deeper and are never touched. Guarded by the marker.