giza: don't create directories unless there are objects to write