MoveFile
EventNames:
MoveFile_Restrictions
MoveFile_Pre
MoveFile_Post
Parameters
Type |
Name |
Description |
---|---|---|
file |
The file which should get / are moved. |
|
parentFolder |
The parent folder where the file should get / is moved. |
|
bool |
successful |
Post: |
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
}