public void setAttribute(final String attrName, final Object value)
throws FileSystemException
{
if (!file.getType().hasAttributes())
{
throw new FileSystemException("vfs.provider/set-attribute-no-exist.error", new Object[]{attrName, file});
}
try
{
file.doSetAttribute(attrName, value);
}
catch (final Exception e)
{
throw new FileSystemException("vfs.provider/set-attribute.error", new Object[]{attrName, file}, e);
}
if (attrs != null)
{
attrs.put(attrName, value);