Click or drag to resize

FilePathCopyPermissions 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.241-beta+912389e96d98840d2a999d490420db618dcbe4c6
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