Table of Contents

Class FileUtil

Namespace
SunamoWinStd
Assembly
SunamoWinStd.dll

Provides utilities for detecting which processes have locks on files.

public static class FileUtil
Inheritance
FileUtil
Inherited Members

Methods

WhoIsLocking(string, bool)

Find out what process(es) have a lock on the specified file.

public static List<Process> WhoIsLocking(string path, bool isThrowingOnError = true)

Parameters

path string

Path of the file.

isThrowingOnError bool

Whether to throw exceptions on errors.

Returns

List<Process>

Processes locking the file

Remarks