Wrapper around fs/promises.mkdir for tar's needs.
The main purpose is to avoid creating directories if we know that they already exist (and track which ones exist for this purpose), and prevent entries from being extracted into symlinked folders, if preservePaths is not set.
preservePaths
Wrapper around fs/promises.mkdir for tar's needs.
The main purpose is to avoid creating directories if we know that they already exist (and track which ones exist for this purpose), and prevent entries from being extracted into symlinked folders, if
preservePathsis not set.