code: public void closeFile(SftpFile file) throws SftpStatusException,
  			SshException {
  
  		if (file.getHandle() != null) {
  			closeHandle(file.getHandle());
  			EventServiceImplementation.getInstance().fireEvent(
  					(new Event(this, J2SSHEventCodes.EVENT_SFTP_FILE_CLOSED,
  							true)).addAttribute(
  							J2SSHEventCodes.ATTRIBUTE_FILE_NAME,
  							file.getAbsolutePath()));
  			file.setHandle(null);
  		}
  	}
docs: Close a file or directory.
  
  @param file
  @throws SftpStatusException
  , SshException