Table of Contents

Interface ITestsPathForWritePermissions

Namespace
CSF.Screenplay.Reporting
Assembly
CSF.Screenplay.dll

An object which may test a file system path for writability.

public interface ITestsPathForWritePermissions

Methods

HasWritePermission(string)

Gets a value indicating whether or not the current process should be able to write a file at the specified path.

bool HasWritePermission(string path)

Parameters

path string

An absolute or relative file path.

Returns

bool

true if the current process is able to write to the specified path; false if not.

Remarks

The path may be relative or absolute; if relative then it is treated as relative to the current working directory.