pub fn init_store(&self) -> Result<()> {
        if !self.store_dir_exists() {
            if let Err(e) = self.make_store_path() {
                return Err(e);
            };
        }
        if !self.store_exists() {
            File::create(self.get_store_path())?;
        }
        self.write_store("{}".to_string())
    }
/// *NOTE* This will initilize the store as either encrypted or
/// plain text depending on if the encryption key is set.
///
/// # Errors
///
/// * The store file directory be created.
/// * The store file cannot be created.
/// * The store file cannot be initialized.
/// * The store file cannot be wrote to.
NOTE* This will initilize the store as either encrypted or
plain text depending on if the encryption key is set.
NOTE * This will initilize the store as either encrypted or plain text depending on if the encryption key is set .
pub fn init_store(&self) -> Result<()> {
        if !self.store_dir_exists() {
            if let Err(e) = self.make_store_path() {
                return Err(e);
            };
        }
        if !self.store_exists() {
            File::create(self.get_store_path())?;
        }
        self.write_store("{}".to_string())
    }
pub fn init_store ( & self ) -> Result < ( ) > { if ! self . store_dir_exists ( ) { if let Err ( e ) = self . make_store_path ( ) { return Err ( e ) ; } ; } if ! self . store_exists ( ) { File :: create ( self . get_store_path ( ) ) ? ; } self . write_store ( " " . to_string ( ) ) }
NOTE* This will initilize the store as either encrypted or
plain text depending on if the encryption key is set.
NOTE * This will initilize the store as either encrypted or plain text depending on if the encryption key is set .
&self
&self
errors
The store file directory be created.
The store file cannot be created.
The store file cannot be initialized.
The store file cannot be wrote to.
The store file directory be created . The store file cannot be created . The store file cannot be initialized . The store file cannot be wrote to .