Do you mean archive an artifact? Just use mydir/**/* - and don't use "Flatten" in any jobs that "Copy artifact" from that job.
If you're talking about an empty directory, then I don't think that works. I might be wrong, but I think it only archives files.
--
Kind regards,
Jørgen.