question: public Date modifiedDate ( String path ) throws IllegalStateException , IOException , FTPIllegalReplyException , FTPException { synchronized ( lock ) { if ( ! connected ) { throw new IllegalStateException ( "Client not connected" ) ; } if ( ! authenticated ) { throw new IllegalStateException ( "Client not authenticated" ) ; } communication . sendFTPCommand ( "MDTM " + path ) ; FTPReply r = communication . readFTPReply ( ) ; touchAutoNoopTimer ( ) ; if ( ! r . isSuccessCode ( ) ) { throw new FTPException ( r ) ; } String [ ] messages = r . getMessages ( ) ; if ( messages . length != 1 ) { throw new FTPIllegalReplyException ( ) ; } else { try { return MDTM_DATE_FORMAT . parse ( messages [ 0 ] ) ; } catch ( ParseException e ) { throw new FTPIllegalReplyException ( ) ; } } } }
target:  This method asks and returns the last modification date of a file or directory.