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.

`dat share` always gives `(empty archive)`

See original GitHub issue
  • OS: Darwin Kernel Version 15.5.0
  • node: v5.12.0
  • npm: 3.10.10
  • dat: 13.6.0

When I run:

mkdir test
cd test
echo "Hello World" > hello.txt
dat share

I always get: Sharing dat: (empty archive)

When I run it with DEBUG=dat-node dat share I can see dat-node IMPORT ignore: /hello.txt.

Why is it ignoring my file? Does not seem to matter what the file is called.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
joehandcommented, Jun 16, 2017

Published a new version of dat-ignore@1.1.1, which should fix this and added a test to catch this in dat-node =).

Thanks for catching this.

1reaction
cadorncommented, Jun 16, 2017

Are you sharing from the root as printed in debug? Or another directory?

Good catch! I had a .tmp segment in my parent directory path which IMO should be valid.

Here is a minimal failing test case:

cd ~/Desktop

rm -Rf .tmp || true
mkdir .tmp
cd .tmp

nvm use 5
npm install -g dat

echo "Hello World" > hello.txt
dat share
Read more comments on GitHub >

github_iconTop Results From Across the Web

`dat share` always gives `(empty archive)` · Issue #797 - GitHub
I always get: Sharing dat: (empty archive). When I run it with DEBUG=dat-node dat share I can see dat-node IMPORT ignore: /hello.txt ....
Read more >
Checking for an empty file in C++ - Stack Overflow
If it reaches the end of file, it returns eof() . Ergo, we just peek() at the stream and see if it's eof()...
Read more >
What Is a DAT File? (And How to Open One) - Lifewire
A DAT file might be a video, email, or generic data file. Many apps use them and no specific program is responsible for...
Read more >
Something is wrong with one of your data files and Outlook ...
In the left pane, expand Computer and then expand HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Outlook\PST. Under the PST key delete the ...
Read more >
Data archiving | CodeTwo Backup User's manual
Archived Exchange data is saved as versioned XML files and (always ... data - it is not possible to share an archive location...
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