Revision ebead1b5 src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java
b/src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java | ||
---|---|---|
113 | 113 |
String path = "/" + Pithos.TRASH_CONTAINER + "/" + f.getPrefix(); |
114 | 114 |
PutRequest createFolder = new PutRequest(app.getApiPath(), app.getUsername(), path) { |
115 | 115 |
@Override |
116 |
public void onSuccess(@SuppressWarnings("unused") Resource result) {
|
|
116 |
public void onSuccess(Resource result) { |
|
117 | 117 |
GetRequest<Folder> getFolder = new GetRequest<Folder>(Folder.class, app.getApiPath(), f.getOwner(), "/" + f.getContainer() + "?format=json&delimiter=/&prefix=" + URL.encodeQueryString(f.getPrefix()), f) { |
118 | 118 |
|
119 | 119 |
@Override |
... | ... | |
130 | 130 |
DeleteRequest deleteFolder = new DeleteRequest(app.getApiPath(), _f.getOwner(), _f.getUri()) { |
131 | 131 |
|
132 | 132 |
@Override |
133 |
public void onSuccess(@SuppressWarnings("unused") Resource _result) {
|
|
133 |
public void onSuccess(Resource _result) { |
|
134 | 134 |
if (callback != null) |
135 | 135 |
callback.execute(); |
136 | 136 |
} |
... | ... | |
213 | 213 |
String path = "/" + Pithos.TRASH_CONTAINER + "/" + file.getPath(); |
214 | 214 |
PutRequest trashFile = new PutRequest(app.getApiPath(), app.getUsername(), path) { |
215 | 215 |
@Override |
216 |
public void onSuccess(@SuppressWarnings("unused") Resource result) {
|
|
216 |
public void onSuccess(Resource result) { |
|
217 | 217 |
trashFiles(iter, callback); |
218 | 218 |
} |
219 | 219 |
|
Also available in: Unified diff