Revision 64eaaf7d src/gr/grnet/pithos/web/client/foldertree/Folder.java
b/src/gr/grnet/pithos/web/client/foldertree/Folder.java | ||
---|---|---|
201 | 201 |
path = unmarshallString(o, "name"); |
202 | 202 |
lastModified = unmarshallDate(o, "last_modified"); |
203 | 203 |
} |
204 |
//Strip the last / if exists in order to determine the name, but remember to put it back |
|
204 | 205 |
boolean endsWithSlash = false; |
205 | 206 |
if (path.endsWith("/")) { |
206 | 207 |
path = path.substring(0, path.length() - 1); |
... | ... | |
210 | 211 |
name = path.substring(path.lastIndexOf("/") + 1, path.length()); //strip the prefix |
211 | 212 |
else |
212 | 213 |
name = path; |
213 |
if (endsWithSlash) |
|
214 |
if (endsWithSlash) { |
|
215 |
path += "/"; |
|
214 | 216 |
name += "/"; |
217 |
} |
|
215 | 218 |
if (aContainer != null) { |
216 | 219 |
container = aContainer; |
217 | 220 |
prefix = path; |
Also available in: Unified diff