/// Create all directories and files used by Riklet to work properly
Create all directories and files used by Riklet to work properly
Create all directories and files used by Riklet to work properly
pub fn bootstrap(&self) -> Result<(), Error> {
        let bundles_dir = self.manager.oci_manager.bundles_directory.clone();
        let images_dir = self.manager.image_puller.images_directory.clone();
        create_directory_if_not_exists(&bundles_dir).map_err(|source| {
            Error::CreateDirectoryError {
                source,
                path: bundles_dir.unwrap(),
            }
        })?;
        create_directory_if_not_exists(&images_dir).map_err(|source| {
            Error::CreateDirectoryError {
                source,
                path: images_dir.unwrap(),
            }
        })?;
        Ok(())
    }
pub fn bootstrap ( & self ) -> Result < ( ) , Error > { let bundles_dir = self . manager . oci_manager . bundles_directory . clone ( ) ; let images_dir = self . manager . image_puller . images_directory . clone ( ) ; create_directory_if_not_exists ( & bundles_dir ) . map_err ( | source | { Error :: CreateDirectoryError { source , path : bundles_dir . unwrap ( ) , } } ) ? ; create_directory_if_not_exists ( & images_dir ) . map_err ( | source | { Error :: CreateDirectoryError { source , path : images_dir . unwrap ( ) , } } ) ? ; Ok ( ( ) ) }
Create all directories and files used by Riklet to work properly
Create all directories and files used by Riklet to work properly
&self