Click or drag to resize

FilePathApplyInheritablePermissions Method

Replaces the permissions of the directory or file at the given targetPath with the inheritable permissions from the directory at the given sourcePath.

Namespace: GSF.IO
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
Syntax
public static void ApplyInheritablePermissions(
	string sourcePath,
	string targetPath
)
View Source

Parameters

sourcePath  String
The path to the directory from which to derive inheritable permissions.
targetPath  String
The path to the directory or file to which to apply the derived permissions.
Exceptions
ExceptionCondition
DirectoryNotFoundExceptionNo directory was found at the given sourcePath.
FileNotFoundExceptionNo file or directory was found at the given targetPath.
See Also