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.

Share a single file with the cli

See original GitHub issue

User can share a single file with the command line: dat ~/Desktop/my_best_file_ever.zip.

Since it’d be confusing to create a .dat folder, we could use the --temp option here, keeping the database in memory.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
millettecommented, Aug 20, 2018

dat clone dat://myhash/path/to/myfile.foo

Or even

dat clone dat://myhash+123/path/to/myfile.foo

To fetch a specific version.

1reaction
okdistributecommented, Aug 20, 2018

@slrslr you can use the .datdownload file to specify a list of files you want to be synced. You can think of dat as an interface that you would want to use instead of dropbox or git or rsync, which is more focused on directories.

I think using drop-dat is the right approach.

PRs welcome though – for example

dat share /path/to/myfile.foo – which would use an in-memory db for single file metadata (mentioned above by @mafintosh)

Or to download a file out of a dat, the interface could allow specifying which file directly in the url, for example:

dat clone dat://myhash/path/to/myfile.foo

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transfer.sh - Easy File Sharing from Linux Commandline
Transfer.sh is a simple, easy and fast service for file sharing from the command-line. It allows you to upload up to 10GB of...
Read more >
Share Files Over Internet From Command Line Using Transfer ...
Transfer.sh allows us to share files over Internet from command line in Linux. Transfer.sh allows you to share files up to 10 GB...
Read more >
How to Share a Folder or Directory in Windows
Right-click the directory or drive you want to share, and select Properties. · In the Properties window, click the Sharing tab. · Click...
Read more >
Single line sftp from terminal - unix - Stack Overflow
So the simple answer is you just do : after your user and host then the remote file and local filename. Incredibly simple!...
Read more >
marionebl/remote-share-cli - GitHub
remote-share-cli exposes single files to the internet via https, either from stdin or a given file. The exposing address is copied to your...
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