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.

Create missing target files/folders from source

See original GitHub issue

I recently migrated from another dotfile-manager, where there was an option called add to move an existing file to the dotfile-repository and create a link to the moved file. I really liked that option, as it eases inclusion of new dotfiles. I was a bit confused that dotbot doesn’t seem to provide something similar (I think that the creator of #135 had the same issue).

I think that dotbot could easily implement such a feature as default behaviour. If the target is missing and the source exists, it could simply move source to target and then create a link from the source location. From my point of view, this is the only sensible thing dotbot can do in that situation (except from doing nothing, which is the current behaviour since the fix for #103).

I’ve prepared a pull request with a possible implementation for the behaviour described in this issue.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
anishathalyecommented, May 10, 2019

Thanks for the feature suggestion / PR.

I think this does not fit the Dotbot model: it’s nice to have things be explicit rather than implicit. Plus, it’s a one-time “setup cost” to move the file into the dotfiles repository, so I think this doesn’t save that much work.

1reaction
anishathalyecommented, Apr 3, 2021

Closing because I’m not planning on adding this feature at this time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to move missing files only from source to target folder
only missing files from the source to the Target folder. Do nothing to files that are identical in size, date and found in...
Read more >
Copy and Create Destination Directory if it Does Not Exist
In this tutorial, we'll discuss how to create the non-existing target directory automatically when we copy files.
Read more >
Create a directory if it does not exist and then create the files ...
The Files.createDirectories() creates a new directory and parent directories that do not exist. This method does not throw an exception if the directory...
Read more >
NETSDK1005 and NETSDK1047: Asset file is missing target
NET SDK issues error NETSDK1005 or NETSDK1047, the project's assets file is missing information on one of your target frameworks.
Read more >
The Ultimate Guide to Copying Files and Folders Using Xcopy
To help you make sense of these options, the tables that follow will cover them in detail. The first path designation refers to...
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