anchor.diff:                      case (Privilege == ?OBJ_PRV_READ_WRITE andalso
                             ?env_enable_diagnosis_log()) of
                           true ->
  -                            _ = filelib:ensure_dir(LogFilePath),
  +                            _ = leo_file:ensure_dir(LogFilePath),
                               ok = leo_logger_client_base:new(
                                      ?LOG_GROUP_ID_DIAGNOSIS,
                                      DiagnosisLogId,
  
positive.code: -spec(get_raw_path(object, string(), string()) ->
               {ok, string()} | {error, any()}).
  get_raw_path(object, ObjectStorageRootDir, SymLinkPath) ->
      case filelib:ensure_dir(ObjectStorageRootDir) of
          ok ->
              case file:read_link(SymLinkPath) of
                  {ok, FileName} ->
  
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},
  