private void isForbidden ( File request , AddOnModel addOnModel ) { if ( forbiddenWriteDirectories . stream ( ) . anyMatch ( compare -> request . toPath ( ) . startsWith ( compare . toPath ( ) ) ) ) { throw getException ( "file: " + request . toString ( ) + " is forbidden. Attempt made by: " + addOnModel . getID ( ) ) ; } }
throws an Exception if the