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: -behaviour(gen_server).
  
  -include("leo_object_storage.hrl").
  -include_lib("eunit/include/eunit.hrl").
  
  %% API
  
negative.code: -spec(get_raw_path(object, string(), string()) ->
               {ok, string()} | {error, any()}).
  get_raw_path(object, ObjectStorageRootDir, SymLinkPath) ->
      case leo_file:ensure_dir(ObjectStorageRootDir) of
          ok ->
              case file:read_link(SymLinkPath) of
                  {ok, FileName} ->
  