lock_folder


Description:


public int lock_folder (string path, int fd, LockType type) throws Error

Attempt to lock a folder, multiple attempts will be made using all locking strategies available.

Parameters:

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.

Returns:

-1 on error, ex will describe the locking system that failed.


Namespace: Camel
Package: camel-1.2