Back to product page

FileLocking property


Determine how will new users lock files during file transfer.

Type

A FileLockings enumeration.

Syntax

  • Basic
object.FileLocking [= value]
The FileLocking(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodFTPD.
valueAn FileLockings enumeration, as described in settings.

Remarks

Value of this property is copied to User.FileLocking property each time new user connects to the server, and defines default behavior only for new users. If you wish to change settings for specific user, use User.FileLocking property instead.

You can specify FileLockNone (default value) in which case wodFTPServer will not lock files, and users can access them simultaneously, uploading and downloading at the same time.
If FileLockUploads is set, then only one upload to specific file can be made, and wodFTPServer will prevent further writes to the file until upload finishes. However, other users can download file at the same time.
When FileLockAll is set, then only one upload or only one download can access the file. Any further attempt to access the file by any user will return an error, until current transfer completes.

Members:
Constant Value Description
FileLockNone0 No file locking.
FileLockUploads 1 File is locked during upload.
FileLockAll3 File is locked during any transfer.

Platforms

Windows