fix(ft): silence warnings when some root is not yet `mkdir`ed

This commit is contained in:
Andrew Mayorov 2023-05-05 23:37:28 +03:00 committed by Ilya Averyanov
parent 5e5f854ce1
commit 079b8e9476
1 changed files with 3 additions and 0 deletions

View File

@ -257,6 +257,9 @@ read_exportinfo(
Transfer = dirnames_to_transfer(ClientId, FileId),
Info = mk_exportinfo(Options, Filename, RelFilepath, Transfer, Fileinfo),
[Info | Acc];
read_exportinfo(_Options, {node, _Root = "", {error, enoent}, []}, Acc) ->
% NOTE: Root directory does not exist, this is not an error.
Acc;
read_exportinfo(Options, Entry, Acc) ->
ok = log_invalid_entry(Options, Entry),
Acc.