Create or remove directory trees