convenience function to compress uncompressed dirs