1 18 package net.sf.drftpd.event; 19 20 import net.sf.drftpd.master.usermanager.User; 21 import net.sf.drftpd.remotefile.LinkedRemoteFileInterface; 22 23 28 public class DirectoryFtpEvent extends UserEvent { 29 private LinkedRemoteFileInterface directory; 30 31 public DirectoryFtpEvent(User user, String command, LinkedRemoteFileInterface directory) { 32 this(user, command, directory, System.currentTimeMillis()); 33 } 34 35 public DirectoryFtpEvent(User user, String command, LinkedRemoteFileInterface directory, long time) { 36 super(user, command, time); 37 this.directory = directory; 38 } 39 40 public LinkedRemoteFileInterface getDirectory() { 41 return directory; 42 } 43 44 public String toString() { 45 return getClass().getName()+"[user="+getUser()+",cmd="+getCommand()+",directory="+directory.getPath()+"]"; 46 } 47 } 48 | Popular Tags |