public void changeGroup ( String group , String file ) throws IOException , ServerException { String arguments = group + " " + file ; Command cmd = new Command ( "SITE CHGRP" , arguments ) ; try { controlChannel . execute ( cmd ) ; } catch ( UnexpectedReplyCodeException urce ) { throw ServerException . embedUnexpectedReplyCodeException ( urce ) ; } catch ( FTPReplyParseException rpe ) { throw ServerException . embedFTPReplyParseException ( rpe ) ; } }
Change the Unix group membership of a file .