Click or drag to resize

FilePath.CopyPermissions Method

Copies permissions from the object at the given sourcePath to the object at the given targetPath.

Namespace: GSF.IO
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.239-beta+5928cebde0dd955df84e791f5ea67acbd192773e
Syntax
public static void CopyPermissions(
	string sourcePath,
	string targetPath
)
View Source

Parameters

sourcePath  String
The path to the object from which to copy permissions.
targetPath  String
The path to the object to which to apply permissions.
Exceptions
ExceptionCondition
FileNotFoundExceptionNo file or directory was found at either the sourcePath or targetPath.
InvalidOperationExceptionThe type of object at sourcePath does not match the type of object at targetPath.
See Also