---
title: LockedFile.mode
slug: Web/API/LockedFile/mode
tags:
  - API
  - Files
  - Non Standard
  - Property
  - Reference
  - WebAPI
---
{{APIRef("File System API")}}{{non-standard_header}}

## Summary

The `mode` property provides the read/write status of the
{{domxref("LockedFile")}} file.

## Syntax

```js
var mode = instanceOfLockedFile.mode
```

## Value

A string, one of `readonly` or `readwrite`.

## Specifications

| Specification                        | Status                           | Comment         |
| ------------------------------------ | -------------------------------- | --------------- |
| {{SpecName('FileSystem')}} | {{Spec2('FileSystem')}} | Draft Proposal. |

## See also

- {{domxref("LockedFile")}}
