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.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
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