anchor.diff:  %% @private
   close_storage(Id, MetaDBId, StateFilePath,
                 StorageStats, WriteHandler, ReadHandler, Reason) when is_list(StateFilePath) ->
  -    _ = filelib:ensure_dir(StateFilePath),
  +    _ = leo_file:ensure_dir(StateFilePath),
       _ = leo_file:file_unconsult(
             StateFilePath,
             [{id, Id},
  
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: -behaviour(gen_server).
  
  -include("leo_object_storage.hrl").
  -include_lib("leo_commons/include/leo_commons.hrl").
  -include_lib("eunit/include/eunit.hrl").
  
  %% API
  