Added support for sharing existing directories