Locking and concurrency control

When sharing files, or accessing files shared by another user, you may want to edit a particular file.

It may take you some time to work on the file, and in the meantime another other user may decide to edit it as well.

Imagine that you finish working on that file, and you upload it back to the shared folder.

If the other user finishes after you and uploads his/her copy of the file, the changes that you have made will be lost.

 

To avoid this situation, you can lock a file before starting editing it. When you lock a file:

 

After you have uploaded the updated version, don't forget to unlock the file, so that other users will be able to change it.

To lock/unlock a file

 

Important: only two users can unlock a locked file:

- the user that originally locked the file

- the owner of the file, i.e. the user that is sharing the file with others

To see whether a file has been locked

If a file is locked, the folder page that contains it will display who has locked it and since when. This information is also available in the file property page, accessible by clicking the Properties link corresponding to the file.

Locking folders

You can also lock an entire folder. When a folder is locked, all the files in that folder and its subfolders are implicitly locked as well, so they cannot be modified by others. Other users are also prevented from uploading new files to the folder.

 

To lock or unlock an entire folder, you can either follow the same procedure used to lock a file (see above), or click on the Lock or Unlock links in the Folder menu.