KB-132692: useTempWorkdirM / useTempWorkdirS

useTempWorkdirM / useTempWorkdirS

The useTempWorkdirM and useTempWorkdirS commands are used exclusively for the script event ScriptBeforeCompare.

These commands can be used to prepare the comparison process. Both commands create a temporary folder (useTempWorkdirM for the master, useTempWorkdirS for the slave) and unpack the archive into it (if necessary).

In this way, before the comparison, changes can be made to the data that should not be preserved after the comparison (the temporary folders are deleted after the comparison).

Syntax:

useTempWorkdirM
useTempWorkdirS

Note

The commmands useTempWorkdirM and useTempWorkdirS need to be executed before the variables $vdog::workdirM and $vdog::workdirS are used. Otherwise, the variable is not set.

Example

Function ScriptBeforeCompare
{
exit.ifbackgroundcheck
provideArchive
useTempWorkdirM
useTempWorkdirS

$def::var3 = $vdog::workdirm // Directory with project files
$def::var4 = $vdog::workdirS // Directory with project files

file.append $def::var3Test.txt
{
write.line test entry $def::var3
}
file.append $def::var4Test.txt
{
write.line test entry $def::var4
}
dump.string $def::var3
dump.string $def::var4
}

Last update: September 15, 2023

Related Articles

IMPRINT | PRIVACY POLICY | COOKIE POLICY

Privacy Preference Center