pub struct Paths {
pub data_dir: PathBuf,
pub profiles_dir: PathBuf,
pub backups_dir: PathBuf,
}Expand description
Where the Claude Desktop app and the saved profiles live.
Constructed with Paths::at in tests so nothing reads a real $HOME.
Fields§
§data_dir: PathBuf§profiles_dir: PathBuf§backups_dir: PathBufImplementations§
Source§impl Paths
impl Paths
Sourcepub fn at(
data_dir: PathBuf,
profiles_dir: PathBuf,
backups_dir: PathBuf,
) -> Self
pub fn at( data_dir: PathBuf, profiles_dir: PathBuf, backups_dir: PathBuf, ) -> Self
Test seam: every root explicit.
Sourcepub fn resolve(anthropic: &AnthropicConfig) -> Result<Self>
pub fn resolve(anthropic: &AnthropicConfig) -> Result<Self>
Production paths. desktop_profiles_dir overrides the claude-acc
default; rollback archives land beside the profile store.
Sourcepub fn available(&self) -> bool
pub fn available(&self) -> bool
Whether there is a Claude Desktop app installation to act on at all. False on Linux, and on a Mac where the app has never run.
pub fn config_json(&self) -> PathBuf
pub fn sessions_root(&self) -> PathBuf
pub fn profile_dir(&self, label: &str) -> PathBuf
Sourcepub fn account_switch_lock(&self) -> PathBuf
pub fn account_switch_lock(&self) -> PathBuf
Shared by Desktop account switching and inactive-profile OAuth refresh. Both operations can rotate or install the same saved credential.
Sourcepub fn prelogin_dir(&self) -> PathBuf
pub fn prelogin_dir(&self) -> PathBuf
Where capture parks the live login before clearing it, so a
cancelled capture can put the account back. Sits beside the archives.
Sourcepub fn synced_path(&self) -> PathBuf
pub fn synced_path(&self) -> PathBuf
What each account’s schedule registry held after the last merge, keyed by account UUID. Kept beside the profile store rather than inside a profile so both this tool and claude-acc read and write one record, and so accounts without a captured profile are still tracked.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Paths
impl RefUnwindSafe for Paths
impl Send for Paths
impl Sync for Paths
impl Unpin for Paths
impl UnsafeUnpin for Paths
impl UnwindSafe for Paths
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more