fn open_exclusive(config: FileBlobConfig, lock_info: LockInfo) -> Result<Self, Error> {
        let base_dir = config.base_dir;
        fs::create_dir_all(&base_dir)?;
        {
            let _ = file_storage_lock(&Self::lockfile_path(&base_dir), lock_info)?;
        }
        let core = FileBlobCore {
            base_dir: Some(base_dir),
        };
        Ok(FileBlob { core })
    }
/// Returns a new [FileBlob] which stores files under the given dir.
///
/// To ensure directory-wide mutual exclusion, a LOCK file is placed in
/// base_dir at construction time. If this file already exists (indicating
/// that another FileBlob is already using the dir), an error is returned.
///
/// The contents of `lock_info` are stored in the LOCK file and should
/// include anything that would help debug an unexpected LOCK file, such as
/// version, ip, worker number, etc.
Returns a new [FileBlob] which stores files under the given dir.
To ensure directory-wide mutual exclusion, a LOCK file is placed in
base_dir at construction time. If this file already exists (indicating
that another FileBlob is already using the dir), an error is returned.

The contents of `lock_info` are stored in the LOCK file and should
include anything that would help debug an unexpected LOCK file, such as
version, ip, worker number, etc.
Returns a new [ FileBlob ] which stores files under the given dir . To ensure directory - wide mutual exclusion a LOCK file is placed in base_dir at construction time . If this file already exists ( indicating that another FileBlob is already using the dir ) an error is returned . The contents of ` lock_info ` are stored in the LOCK file and should include anything that would help debug an unexpected LOCK file such as version ip worker number etc .
fn open_exclusive(config: FileBlobConfig, lock_info: LockInfo) -> Result<Self, Error> {
        let base_dir = config.base_dir;
        fs::create_dir_all(&base_dir)?;
        {
            let _ = file_storage_lock(&Self::lockfile_path(&base_dir), lock_info)?;
        }
        let core = FileBlobCore {
            base_dir: Some(base_dir),
        };
        Ok(FileBlob { core })
    }
fn open_exclusive ( config : FileBlobConfig , lock_info : LockInfo ) -> Result < Self , Error > { let base_dir = config . base_dir ; fs :: create_dir_all ( & base_dir ) ? ; { let _ = file_storage_lock ( & Self :: lockfile_path ( & base_dir ) , lock_info ) ? ; } let core = FileBlobCore { base_dir : Some ( base_dir ) , } ; Ok ( FileBlob { core } ) }
Returns a new [FileBlob] which stores files under the given dir.
Returns a new [ FileBlob ] which stores files under the given dir .
config
FileBlobConfig
lock_info
LockInfo
config
FileBlobConfig
lock_info
LockInfo