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

 
Learn about scoring Forum's Raw Score: 52332.3
July 31, 2010 06:42 AM

Categories: PogoPlug Development

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

Member Avatar

bionic.tim

Member
Joined: 07/17/2010

Hi pogo devs,

Using the API, is there a way to fetch the total file count in a directory? The listfiles method doesn't seem to have a "total count" output parameter.

The my.pogoplug.com app incorporates paging when browsing a large directory, so it seems a total count value must be obtainable -- that's assuming the app uses the API.

I'd like to incorporate paging in the app i'm building, but it's not doable with no total count.

Thanks!

tim

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

February 25, 2011 4:22 AM updated: February 25, 2011 4:23 AM

It's not documented but it is there. I use the XML version of the API, here's a snippet of the XML I get from calling listFile...

0 32 ... 32 37

i.e. totalcount is returned alongside count.

February 25, 2011 4:24 AM updated: February 25, 2011 4:51 AM

OK, so you can't include XML in replies...

Anyway, totalcount is returned alongside count, at the same level of nesting.

Discussion:    Add a Comment | Comments 1-2 of 2 | 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