Implemented --archive flag for directories only