files check for symlink
list Mike Rowell
Hobbitites, Is it possible to use the FILES check to check is a file exists and is a symlink, in our architecture we use symlinks for a live/fallow setup on some systems switching between the directories during certain tasks, what I need to check is that a file inside the current live directory exists and is a symlink. Regards, Mike Rowell This email has been scanned for all viruses by the MessageLabs service.
list Henrik Størner
▸
On Wed, May 23, 2007 at 10:21:36AM +0100, Mike Rowell wrote:
Is it possible to use the FILES check to check is a file exists and is a symlink, in our architecture we use symlinks for a live/fallow setup on some systems switching between the directories during certain tasks, what I need to check is that a file inside the current live directory exists and is a symlink.
The obvious answer would be a FILE check with "type=symlink", but alas that hasn't been implemented. A completely untested patch would be the following. Let me know if it works. Regards, Henrik
Attachments (1)