Attempt to lock a folder, multiple attempts will be made using all locking strategies available.
path |
Path to the file to lock (used for .locking only). |
fd |
Open file descriptor of the right type to lock. |
type |
Type of lock, CAMEL_LOCK_READ or CAMEL_LOCK_WRITE. |
-1 on error, |