mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-19 22:46:34 -05:00
find functions now return errors. closes #24
This commit is contained in:
parent
8f35406000
commit
cfe7609bcd
21 changed files with 123 additions and 111 deletions
|
|
@ -50,9 +50,9 @@ _rename(const fs::SearchFunc searchFunc,
|
|||
string pathto;
|
||||
fs::PathVector pathfrom;
|
||||
|
||||
searchFunc(srcmounts,from,pathfrom);
|
||||
if(pathfrom.empty())
|
||||
return -ENOENT;
|
||||
rv = searchFunc(srcmounts,from,pathfrom);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
pathto = fs::make_path(pathfrom[0].base,to);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue