Back to product page

FileLocking property


Determine if files are locked during transfers for this user.

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 FtpUser.
valueAn FileLockings enumeration, as described in settings.

Remarks

Value of this property is copied from wodFTPServer.FileLocking property each time new user connects to the server, and defines behavior only for current user.

You can specify FileLockNone (default value) in which case wodFTPServer will not lock files for this user, 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