Main Content

mlreportgen.utils.isFileLocked

Determine if file is locked

Description

example

tf = mlreportgen.utils.isFileLocked(filename) tests whether the specified file is locked.

Examples

collapse all

Verify that the output.pdf file is locked.

mlreportgen.utils.isFileLocked('output.pdf')
ans =

  logical

   0

Input Arguments

collapse all

Name or full path of the file to test, specified as a character vector or string scalar.

Output Arguments

collapse all

Status of the file, returned as true or false. If the file is locked by another process, true is returned. It the file is not locked, false is returned.

Version History

Introduced in R2018b