Code Monkey home page Code Monkey logo

Comments (7)

ijlyttle avatar ijlyttle commented on July 22, 2024

Did some first digging -

https://docs.box.com/reference#get-folder-info

seems that the call used in box_ls() is limited to 100 by default, but can be extended to 1000 - otherwise needs pagination.

If it's OK, I'll do a provisional PR to set default to 1000, but will ultimately need to use pagination.

Thoughts?

from boxr.

brendan-r avatar brendan-r commented on July 22, 2024

Thanks for spotting this --- a PR would be much appreciated!

from boxr.

ijlyttle avatar ijlyttle commented on July 22, 2024

Will do!

from boxr.

brendan-r avatar brendan-r commented on July 22, 2024

👍 Thanks so much, you've been added as the package's first contributor! (b113ae5).

Agree that pagination is the way to solve this properly, thanks for offering to contribute it. I wrote a very simple pagination function for box_search here. If you think you can adapt/extend/genericize that, by all means do.

I think the improvements probably deserve a test. If you'd like to contribute one, shoot me a mail at [email protected], and I'll send you the creds for the boxr account I use for testing (don't use your personal box account; it'll overwrite and delete everything several times!). However, if you can't spare the time to write a test of two, don't let that put you off.

from boxr.

ijlyttle avatar ijlyttle commented on July 22, 2024
  • Glad to contribute, as I've said before, this package is a lifesaver!
  • Will be happy to take a stab at pagination, following your lead.
  • I'll send a separate email to you to start the ball rolling on testing.

from boxr.

ijlyttle avatar ijlyttle commented on July 22, 2024

fixed in 866f03b

from boxr.

brendan-r avatar brendan-r commented on July 22, 2024

🎉

from boxr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.