Maximum depth for directory structures, prevents infinite loops