Handle subdirectories