Move file/folder

Operation of Move is very similar to operation Copy, the only one difference is that file / folder will be copied into required location and will be removed from the previous location ( actually there will be NO physicall remove, just changing metadata ). Please use next code for such operation:

            Action<MetaData> callback = MoveCompleted;

            DropBoxy.DropBoxyEngine engine = new DropBoxy.DropBoxyEngine();
            engine.ApiKey = "api key";
            engine.ApiSecret = "api secret";

            engine.SetToken("usertoken", "usersecret");

            engine.Move("fromlocation", "tolocation", callback);

Please note that callback function will return Metadata for file/folder from new location.

Last edited Jan 16, 2011 at 10:47 AM by dimko1, version 1


No comments yet.