question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error in File count

See original GitHub issue

Testing today with 12.0.1

% DEBUG=dat,dat-node dat share

dat Reading archive in dir /path/to/Directory Name +0ms dat-node Running initArchive on /path/to/Directory Name with opts: { _: [], utp: true, quiet: false, import: true, ignoreHidden: true, ‘ignore-hidden’: true, watch: true, dir: ‘/path/to/Directory Name’, logspeed: 200, port: 3282, debug: ‘dat,dat-node’, server: ‘https://datproject.org/api/v1’, exit: false } +4ms dat-node Making/Reading archive database +5ms dat-node Reading existing keys in drive +8ms dat-node Drive has 0 existing keys. +8ms dat-node No existing feeds in drive, creating new archive. +0ms dat-node Archive initialized +3ms dat-node Archive key 84c28e88181a19dd012d791a308f03106a7a53f5889e0c2d22e7a1952a720822 +0ms dat-node Opening archive 84c28e88181a19dd012d791a308f03106a7a53f5889e0c2d22e7a1952a720822 +1ms dat-node Archive opened +22ms dat-node initArchive callback +0ms dat Share: sync on 84c28e88181a19dd012d791a308f03106a7a53f5889e0c2d22e7a1952a720822 +1ms dat Importing updated & new files into archive +15ms dat-node Importer created. Counting Files. +6ms dat-node File count finished { files: 6, dirs: 3, bytes: NaN } +191ms /home/s/.npm-packages/lib/node_modules/dat/node_modules/pretty-bytes/index.js:6 throw new TypeError(Expected a finite number, got ${typeof num}: ${num}); ^

TypeError: Expected a finite number, got number: NaN at module.exports.num (/home/s/.npm-packages/lib/node_modules/dat/node_modules/pretty-bytes/index.js:6:9) at null._repeat (/home/s/.npm-packages/lib/node_modules/dat/lib/share.js:131:92) at wrapper [as _onTimeout] (timers.js:270:19) at Timer.listOnTimeout (timers.js:89:15)

and the directory contents are:

% tree . ├── An Escape Act │   ├── An Escape Act.pdf │   └── cover.jpg ├── Kingdom of the Dolls │   ├── cover.jpg │   └── Kingdom of the Dolls.pdf └── Social Studies A Conversation about Art and Social Engagement ├── cover.jpg └── Social Studies A Conversation about Art and Social Engagement.pdf

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
sdockraycommented, Feb 9, 2017

Yay! Prior to this bug I wasn’t able to successfully clone (well it would fetch metadata but then hang at 0% on contents) and now I can.

0reactions
joehandcommented, Feb 9, 2017

Sweet! Thanks for reporting the issue.

You can also now try the directory counter directly:

npm install -g count-files
cd my-dir-to-count
count-files

You should get not NaN 😄 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: How do I fix the "File count over limit" error when copy ...
I am trying to copy files from OneDrive account to an archive folder in Sharepoint diretly, I get File count over limit error....
Read more >
SharePoint Migration Tool Error: File Count XXXX is too large to
HI Team, We are migrating files with approx count of 120058 into SharePoint Online library which has around 5200 files already in the...
Read more >
Error in the total number of file count - MATLAB Answers
Hello everyone! I need to make the dicom file count in a directory and i try the following code: Theme.
Read more >
Count the number of errors in a file - awk - Stack Overflow
In the END rule, you just loop over all fields as indexes in the array outputting the symbol and number of associated errors....
Read more >
INVALID VOLUME FILE COUNT and INVALID VOL…
Every few days, something on my machine is causing an invalid volume file count and an invalid volume directory count. Error message will ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found