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.218-beta+101eee949414e414795e55a6e73d88938f0177b8
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