Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dat log command #781

Merged
merged 3 commits into from
May 23, 2017
Merged

Add dat log command #781

merged 3 commits into from
May 23, 2017

Conversation

joehand
Copy link
Collaborator

@joehand joehand commented May 23, 2017

Uses dat-log to log history and metadata. You can run on a local directory with .dat folder or a key, for example:

❯ dat log dat://64375abb733a62fa301b1f124427e825d292a6d3ba25a26c9d4303a7987bec65
1 [put] / 0 B (0 blocks)
2 [put] /README 175 B (1 block)
3 [put] /dat.json 309 B (1 block)
4 [put] /far-manzanar.csv 2.0 MB (31 blocks)
5 [put] /far-minidoka.csv 2.1 MB (33 blocks)
6 [put] /far-poston.csv 3.6 MB (55 blocks)
7 [put] /wra-master.csv 73 MB (1111 blocks)

Log synced with network

Archive has 7 changes (puts: +7, dels: -0)
Current Size: 80 MB
Total Size:
- Metadata 436 B
- Content 80 MB
Blocks:
- Metadata 8
- Content 1232

@joehand joehand mentioned this pull request May 23, 2017
@joehand
Copy link
Collaborator Author

joehand commented May 23, 2017

Might be nice to have mtime in there too.

@joehand joehand merged commit c217b09 into master May 23, 2017
@joehand joehand deleted the dat-log branch May 23, 2017 22:29
@okdistribute
Copy link
Collaborator

woohoo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants