Skip to content

Commit

Permalink
[XrdCl] Check if target is dir for roots/xroots.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Mar 9, 2020
1 parent 96aa184 commit 1b77156
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/XrdCl/XrdClCopy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,8 @@ int main( int argc, char **argv )
bool targetIsDir = false;
if( config.dstFile->Protocol == XrdCpFile::isDir )
targetIsDir = true;
else if( config.dstFile->Protocol == XrdCpFile::isXroot )
else if( config.dstFile->Protocol == XrdCpFile::isXroot ||
config.dstFile->Protocol == XrdCpFile::isXroots )
{
URL target( dest );
FileSystem fs( target );
Expand Down

0 comments on commit 1b77156

Please sign in to comment.