iirc this will fail even if there is an empty directory - is that the intention now ?