Giter VIP home page Giter VIP logo

Comments (7)

kurin avatar kurin commented on August 20, 2024

Oh I see, getFileInfo can't be called without the fileId, which we don't have without another call first.

However, downloadFileByName returns the X-Bz-Info-* headers, so we can populate object info from that.

from blazer.

kurin avatar kurin commented on August 20, 2024

This is actually trickier than it looks. Not all the information (upload timestamp, status, specifically) is available from downloadFileByName. But I don't want to open with getFileInfo because identifying a 404 shouldn't be a class C op.

from blazer.

kurin avatar kurin commented on August 20, 2024

(which is what list_files is, which is the only other way to get at the file ID when we don't already know it)

from blazer.

nicolas17 avatar nicolas17 commented on August 20, 2024

You no longer need to ensure a file doesn't exist before uploading it (and that's impossible to do without race conditions anyway). Is this ticket still valid?

from blazer.

kurin avatar kurin commented on August 20, 2024

That's an implementation detail for restic; B2 never required that test.

This bug isn't so much about removing that test as it is determining that I'm not making two calls when one would suffice within blazer. For example, the Reader used to require a b2_get_file_info call to get the total object size before downloading it, but that was changed in #12. There may be others.

from blazer.

nicolas17 avatar nicolas17 commented on August 20, 2024

Bah, I got confused and thought this ticket was in the restic repo 🙈

from blazer.

kurin avatar kurin commented on August 20, 2024

Hah, no worries.

from blazer.

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.