anchor.diff:  -spec(get_raw_path(object, string(), string()) ->
                {ok, string()} | {error, any()}).
   get_raw_path(object, ObjectStorageRootDir, SymLinkPath) ->
  -    case filelib:ensure_dir(ObjectStorageRootDir) of
  +    case leo_file:ensure_dir(ObjectStorageRootDir) of
           ok ->
               case file:read_link(SymLinkPath) of
                   {ok, FileName} ->
  
positive.code:                     case (Privilege == ?OBJ_PRV_READ_WRITE andalso
                            ?env_enable_diagnosis_log()) of
                          true ->
                              _ = filelib:ensure_dir(LogFilePath),
                              ok = leo_logger_client_base:new(
                                     ?LOG_GROUP_ID_DIAGNOSIS,
                                     DiagnosisLogId,
  
negative.code: %% @private
  close_storage(Id, MetaDBId, StateFilePath,
                StorageStats, WriteHandler, ReadHandler, Reason) when is_list(StateFilePath) ->
      _ = leo_file:ensure_dir(StateFilePath),
      _ = leo_file:file_unconsult(
            StateFilePath,
            [{id, Id},
  