Use path objects so joins, names, and parent directories stay explicit and platform-safe. Interviewers like when you pick the tool that makes intent obvious rather than the one that happens to work today.
The strongest answers connect the feature to reasoning and tradeoffs instead of reciting syntax.