When editing a file, you can lock the file. The lock has the following purposes:
The file lock informs other users that the file is currently being edited and might no longer be up-to-date.
If the file is located in a folder that you share with other users whom you granted edit permissions, those users cannot edit the locked file.
You can lock or unlock a single file or multiple files at once.