Fix for base file adapter: do not add items unless they are files (and the object specifies files), or directies (and the object specified directories via filename xsi:nil=true).