Initial resource directory generation.