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.232-beta+203aa83a5a82d50f387e69875549969ad138d6e0
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