readDirectory

If provided, used to cache and handle directory structure modifications