docs: def add(self, value):
          """Create a safe directory from a value."""
          path = value if isinstance(value, Path) else Path(str(value))
          if path and path != path.parent:
              destination = self
              for part in path.parts:
                  destination = destination.setdefault(part, DirectoryTree())