OUR NETWORK:TiVoCommunity TechLore MyOpenRouter Dijit Community MediaSmart Home See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 48478.3
October 5, 2010 02:08 AM

Categories: PogoPlug Development

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

bionic.tim

Member
Joined: 07/17/2010

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

Discussion:    Add a Comment | Comments 1-3 of 3 | Latest Comment

November 14, 2010 4:09 AM

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?

January 3, 2011 3:08 PM

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

February 25, 2011 4:07 AM

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.

Discussion:    Add a Comment | Comments 1-3 of 3 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window