Commit 1d8d9022 authored by Cedric CAFFY's avatar Cedric CAFFY
Browse files

Replaced the deprecated XrdClientUrlInfo by the XrdCl::URL object that is used...

Replaced the deprecated XrdClientUrlInfo by the XrdCl::URL object that is used for extracting a path of a file from a Xrootd URL
parent d534d0e4
......@@ -165,7 +165,6 @@ target_link_libraries (ctacommon
z
cap
XrdCl
${XROOTD_XRDCLIENT_LIB}
)
set (COMMON_UNIT_TESTS_LIB_SRC_FILES
......
......@@ -36,7 +36,7 @@
#include <sys/utsname.h>
#include <sys/prctl.h>
#include <iomanip>
#include <xrootd/XrdClient/XrdClientUrlInfo.hh>
#include <xrootd/XrdCl/XrdClURL.hh>
using cta::exception::Exception;
......@@ -847,8 +847,8 @@ std::string getCurrentLocalTime() {
}
std::string extractPathFromXrootdPath(const std::string& path){
XrdClientUrlInfo urlInfo(path.c_str());
return std::string(urlInfo.File.c_str());
XrdCl::URL urlInfo(path.c_str());
return urlInfo.GetPath();
}
//------------------------------------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment