Giter Club home page Giter Club logo

fs-chunk-store's Issues

Zero-length files *should* be created by the store

This is probably the issue, but it is not fully confirmed, as we didn't trace it exactly to this module.

In WebTorrent Desktop, there's a bug where a zero length file is not being created on the filesystem, which causes the mod-time code to think the file has been modified on disk and reverify the entire torrent.

Happens consistently with archive.org torrents.

cc @dcposch

Cannot create folder that already exists.

I'm getting an eexists error when trying something similar to the below code, telling me the outputPath already exists:

const torrent = client.add(torrent, { path: outputPath });
torrent.on('done', () => {
  const readStream = torrent.files[fileIndex].createReadStream();
  fluent(readStream);
});

From what I can see on my filesystem, webtorrent has created the folder and added a single file to it, then errors when I later try to create a readstream from it. I was able to edit the copy of fs-chunk-store in my local node_modules folder, and reverting this change fixes the problem for me:

802dfa9

Node's docs say that { recursive: true } prevents EEXISTS errors, but maybe that doesn't count for the child most folder?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v3
  • actions/setup-node v3
.github/workflows/release.yml
  • actions/checkout v3
  • actions/setup-node v3
  • actions/cache v3
npm
package.json
  • filename-reserved-regex ^3.0.0
  • queue-microtask ^1.2.2
  • random-access-file ^4.0.0
  • randombytes ^2.0.3
  • run-parallel ^1.1.2
  • thunky ^1.0.1
  • @webtorrent/semantic-release-config 1.0.10
  • abstract-chunk-store 1.5.0
  • semantic-release 21.1.2
  • standard *
  • tape 5.7.5

  • Check this box to trigger a request for Renovate to run again on this repository

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.