Browse Source

dirname should not return an empty string

pull/856/head
Antonio SJ Musumeci 4 years ago
parent
commit
f50812a9ce
  1. 2
      src/fs_clonepath.cpp

2
src/fs_clonepath.cpp

@ -73,7 +73,7 @@ namespace fs
return 0;
dirname = fs::path::dirname(relative_);
if(!dirname.empty())
if(dirname != "/")
{
rv = fs::clonepath(fromsrc_,tosrc_,dirname,return_metadata_errors_);
if(rv == -1)

Loading…
Cancel
Save