Changeset 1229 for extensions/net.sf.basedb.ftp
- Timestamp:
- Aug 19, 2010, 1:28:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.ftp/trunk/src/net/sf/basedb/clients/ftp/BaseFileSystemView.java
r915 r1229 81 81 <li>The path starts with a '/', meaning that it is an absolute 82 82 path 83 <li>The path is '.', meaning that we stay in the current 84 directory (this is used by some clients to keep the 85 connection alive) 83 86 <li>All other paths are relative to the current directory. 84 87 </ol> … … 106 109 changeTo = new Path(currentDir.getAbsolutePath(), Path.Type.DIRECTORY).getParent(); 107 110 } 111 else if (path.equals(".")) 112 { 113 // Keep changeTo == null 114 } 108 115 else 109 116 { … … 118 125 try 119 126 { 120 currentDir = new BaseFtpFile(user, Directory.getByPath(dc, changeTo)); 127 if (changeTo != null) 128 { 129 currentDir = new BaseFtpFile(user, Directory.getByPath(dc, changeTo)); 130 } 121 131 log.debug("Directory changed to: " + currentDir); 122 132 return true;
Note: See TracChangeset
for help on using the changeset viewer.