}
protected void finishPutTransfer( Resource resource, InputStream input, OutputStream output )
throws TransferFailedException
{
RepositoryPermissions permissions = getRepository().getPermissions();
String filename = ScpHelper.getResourceFilename( resource.getName() );
if ( permissions != null && permissions.getGroup() != null )
{
setGroup( filename, permissions );
}
if ( permissions != null && permissions.getFileMode() != null )
{
setFileMode( filename, permissions );
}
}