441442443444445446447448449450451452453454
catch(Exception ex) { } } FilesystemConnection c = new FilesystemConnection(); c.addConnectionListener((ConnectionListener) remoteDir); remoteDir.setCon(c); if(!c.chdir("/")) { c.chdir("C:\\"); } }
151152153154155156157158159160161
* RemoteDir constructor. */ public RemoteDir() { type = "remote"; con = new FilesystemConnection(); con.addConnectionListener(this); if(!con.chdir("/")) { con.chdir("C:\\");
169170171172173174175176177178179
*/ public RemoteDir(String path) { type = "remote"; this.path = path; con = new FilesystemConnection(); con.addConnectionListener(this); con.chdir(path); setDate(); }
149150151152153154155156
* LocalDir constructor. */ public LocalDir() { type = "local"; con = new FilesystemConnection(); con.addConnectionListener(this); }
160161162163164165166167168169170
*/ public LocalDir(String path) { type = "local"; this.path = path; con = new FilesystemConnection(); con.addConnectionListener(this); con.chdir(path); //gui(false); }