Revision b51c628b src/gr/grnet/pithos/web/client/commands/PasteCommand.java

b/src/gr/grnet/pithos/web/client/commands/PasteCommand.java
120 120
    private void moveFiles(final Iterator<File> iter, final Command callback) {
121 121
        if (iter.hasNext()) {
122 122
            File file = iter.next();
123
            String path = app.getApiPath() + app.getUsername() + folder.getUri() + "/" + file.getName();
124
            PutRequest copyFile = new PutRequest(path) {
123
            String path = folder.getUri() + "/" + file.getName();
124
            PutRequest copyFile = new PutRequest(app.getApiPath(), app.getUsername(), path) {
125 125
                @Override
126 126
                public void onSuccess(Resource result) {
127 127
                    moveFiles(iter, callback);

Also available in: Unified diff