@a_d Are you still able to help with the issue above please?
Did you try paths instead of paths in this code snippet?