From 07e9f43c635d4af18465a8c7c22751cf77fbc1cd Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Wed, 11 Nov 2020 19:29:14 +0000 Subject: [PATCH 1/2] todo/question on how to get full path to the key knowing metadata but having no file --- ..._--path__93___given_a_checksum_and_filename__63__.mdwn | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/todo/calckey___91__--path__93___given_a_checksum_and_filename__63__.mdwn diff --git a/doc/todo/calckey___91__--path__93___given_a_checksum_and_filename__63__.mdwn b/doc/todo/calckey___91__--path__93___given_a_checksum_and_filename__63__.mdwn new file mode 100644 index 0000000000..5c1ff438f1 --- /dev/null +++ b/doc/todo/calckey___91__--path__93___given_a_checksum_and_filename__63__.mdwn @@ -0,0 +1,8 @@ +May be it is already available and thus not really todo (feel welcome to close then or I will), and/or I have asked before, but I failed to find it. Sorry if duplicating the issue. + +In some scenarios we do know ahead of time url + size + filename (thus extension) + corresponding checksum for the content. We would like to implement `addurl` which would not even talk to the remote server but just "mint" corresponding path to the key under `.git/annex/objects` and `registerurl` to it. But I failed to find a convenience annex command which would allow us to get the full key (accounting for `E` the way git annex does), and full path to it (thus adding `DIRHASH` which special remotes could "query", and which is appropriate given the repository settings). + +I made subject prefixed with `calckey` since it seems like the closest hit but it does need an actual file. + +[[!meta author=yoh]] +[[!tag projects/datalad]] From 60a71f90cc86be41d25b8639a715880f63062ecf Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Wed, 11 Nov 2020 20:10:33 +0000 Subject: [PATCH 2/2] adding a note pointing to tentative recipe --- ...___91__--path__93___given_a_checksum_and_filename__63__.mdwn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/todo/calckey___91__--path__93___given_a_checksum_and_filename__63__.mdwn b/doc/todo/calckey___91__--path__93___given_a_checksum_and_filename__63__.mdwn index 5c1ff438f1..49453827bb 100644 --- a/doc/todo/calckey___91__--path__93___given_a_checksum_and_filename__63__.mdwn +++ b/doc/todo/calckey___91__--path__93___given_a_checksum_and_filename__63__.mdwn @@ -4,5 +4,7 @@ In some scenarios we do know ahead of time url + size + filename (thus extension I made subject prefixed with `calckey` since it seems like the closest hit but it does need an actual file. +edit1: I was pointed to [forum/Is_it_possible_adding_files_to_git_annex_bypassing___40__some_parts_of__41___the_git_annex_tools/#comment-a80b2371012dda93ad7fb4926af91b48](https://git-annex.branchable.com/forum/Is_it_possible_adding_files_to_git_annex_bypassing___40__some_parts_of__41___the_git_annex_tools/#comment-a80b2371012dda93ad7fb4926af91b48) which seems to be the closest hit, but relies on assuming how extension is extracted by annex, which might be incorrect for some files. + [[!meta author=yoh]] [[!tag projects/datalad]]