Understanding the sws lock Command

This command locks objects in the workspace.

See Also
sws lock Command Options

This command locks files or folders in the workspace. When an object is locked, no other users or workspaces can check in any changes or lock the file or folder. The object must be up-to-date to be locked.

When a folder is locked, all files and folders within that folder are locked implicitly. If you try to lock a folder that contains a folder or folder that another user have locked (explicitly or implicitly), you cannot lock the folder. If you lock a folder that contains a folder or folder that you have locked in the same workspace, the explicit lock moves up to the selected folder, and the original lock becomes implicit.

The sws lock command can lock multiple file or folder objects in a single command by separating the path arguments with spaces. If you cannot obtain a lock on any objects in the list, those objects are not locked, but all the other objects in the list are locked.

Note: If you are locking a folder and any file or folder within the folder, cannot be locked, the folder is not locked, and no objects within the folder are locked.
You can release the lock using the sws unlock command.