Add withTempDir function

Sometimes it is required to execute a block of code inside
a temporaty directory that will be removed afterwards.

This commit adds withTempDir function that does exactly this.

Related-Prod: PRODX-5657
Change-Id: I79d3ac92f6a03bb32c10cb81e5c304e119c88414
1 file changed