fn removeDotDirsSanitized(comptime T: type, path: []T) RemoveDotDirsError!usize

Removes ‘.’ and ‘..’ path components from a “sanitized relative path”. A “sanitized path” is one where: 1) all forward slashes have been replaced with back slashes 2) all repeating back slashes have been collapsed 3) the path is a relative one (does not start with a back slash)

Parameters

T: type,
path: []T,