MoveFile

EventNames:

  • MoveFile_Restrictions

  • MoveFile_Pre

  • MoveFile_Post

Parameters

Type

Name

Description

File

file

The file which should get / are moved.

Restrictions and Pre:
In Restrictions and Pre you could get the new path by the property _NewFullPath.

Post:
In POST you you could get the old path by the property _OldFullPath.

Folder

parentFolder

The parent folder where the file should get / is moved.

bool

successful

Post:
The information whether the Web Service call was successful or not is only available in Post events.

Examples:
MoveFile_Restrictions:

Register-VaultEvent -EventName MoveFile_Restrictions -Action 'RestrictMoveFile'

function RestrictMoveFile($file, $parentFolder) {
	#Write event code here
}

MoveFile_Pre:

Register-VaultEvent -EventName MoveFile_Pre -Action 'PreMoveFile'

function PreMoveFile($file, $parentFolder) {
	#Write event code here
}

MoveFile_Post:

Register-VaultEvent -EventName MoveFile_Post -Action 'PostMoveFile'

function PostMoveFile($file, $parentFolder, $successful) {
	#Write event code here
}