Revision fa68c84d src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java

b/src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java
34 34
 */
35 35
package gr.grnet.pithos.web.client.commands;
36 36

  
37
import gr.grnet.pithos.web.client.Const;
37 38
import gr.grnet.pithos.web.client.Pithos;
38 39
import gr.grnet.pithos.web.client.foldertree.File;
39 40
import gr.grnet.pithos.web.client.foldertree.Folder;
......
118 119
	}
119 120

  
120 121
    private void trashFolder(final Folder f, final Command callback) {
121
    	String path = "/" + Pithos.TRASH_CONTAINER + "/" + f.getPrefix();
122
    	String path = "/" + Const.TRASH_CONTAINER + "/" + f.getPrefix();
122 123
    	app.copyFolder(f, app.getUserID(), path, true, callback);
123 124
    }
124 125
  
125 126
    protected void trashFiles(final Iterator<File> iter, final Command callback) {
126 127
        if (iter.hasNext()) {
127 128
            File file = iter.next();
128
            String path = "/" + Pithos.TRASH_CONTAINER + "/" + file.getPath();
129
            String path = "/" + Const.TRASH_CONTAINER + "/" + file.getPath();
129 130
            PutRequest trashFile = new PutRequest(app.getApiPath(), app.getUserID(), path) {
130 131
                @Override
131 132
                public void onSuccess(Resource result) {

Also available in: Unified diff