Supports dynamic sized diirectories
Resizes array to allow for any sized directory