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.

Use dat.json `name` for folder name on clone

See original GitHub issue

From @karissa on January 10, 2017 19:55

When doing dat clone right now it creates a folder with the hash as a name. It’d be nice if instead, we fetch the dat.json file and if it exists, use the name or title key as the folder name.

Copied from original issue: joehand/dat-next#72

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
joehandcommented, Feb 16, 2017

@joehand you didn’t think this through 6 days ago before you commented.

You can create the directory using the key and once the clone is finished, rename it to whatever is in the dat.json name or title.

0reactions
joehandcommented, Feb 16, 2017

+1 on postponing. I’ll be much easier with append-tree and not worth implementing twice.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Change Folder Name during Git Clone of Repo
By default, git clone will clone the repository into the current working directory, and use the repository's name as the folder name.
Read more >
Command Line - Dat Docs - Dat Foundation
Clone a remote dat archive to a local folder. This will create a folder with the key name if no folder is specified....
Read more >
Dat
Use dat command line to share files with version control, back up data to ... To clone a dat you can specify the...
Read more >
Parse a JSON object in JavaScript to generate an array
I have the following JSON, which has files and folders (reserved words) inside to indicate the which are files and folders. the_name_of_the_folder_itself: " ......
Read more >
Working with folders and files with REST - SharePoint
Folder " }, "ServerRelativeUrl": "/document library relative url/folder name" }. The following example shows how to rename a folder by using ...
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