Ok... Maybe someone can help me with this. If I want to use the web API to rename a file, should I make a copy of the file with the new name, then delete the old file? Is this the only way to rename a file?
Thanks,
tim
Categories: PogoPlug Development
Hi all,
I'm building an app that uses the Pogoplug web API, and notice from the docs that it doesn't appear to have rename support. Is there a way to rename a file or folder using the API, and if not, is it coming soon?
Thanks,
tim
I'm dabbling with creating a stand-alone program which is like a Pogoplug Explorer, and I've noticed that if a file is renamed, either by using my.pogoplug.com or if you have the Drive application running, the file ends up with a different fileid, so in effect it is the same as copying the file and deleting the original. Indeed, that may be what these applications actually do.
In my program, I'm storing a "directory listing" of all the details of all the files that were on my Pogoplug last time that I ran it, so that I can flag up which files have been added, removed or modified since last time. I did this test to see if I could detect that a file had been renamed - if it had the same fileid I would know that it had been renamed, but it was still the same file. Because the fileid is different, my program thinks that the old name has been removed and the new name has been added.
By the way, it looks like the fileids are derived from the filenames, because if I rename a file, then rename it back again, it gets its original fileid back.

RSS



Hi. Does anyone have any information on this? I know pogoplug supports renaming files via service calls because my.pogoplug.com does it, and it appears to be called using ajax, although not using the public api.
The api supports creating, uploading and deleting files. Why not renaming?