From 8fd998955bb547170d1f428ddd7a2ec67fe1a689 Mon Sep 17 00:00:00 2001 From: "uwe.nagler@9f80ad68e498fcdb09e20b17ff4539f94ef73ea9" Date: Tue, 31 May 2016 11:51:56 +0000 Subject: Added a comment: subdirectories above FILEKEY directory --- ...nt_17_01559b914ed43c4468e0980f3f794ea7._comment | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/special_remotes/directory/comment_17_01559b914ed43c4468e0980f3f794ea7._comment diff --git a/doc/special_remotes/directory/comment_17_01559b914ed43c4468e0980f3f794ea7._comment b/doc/special_remotes/directory/comment_17_01559b914ed43c4468e0980f3f794ea7._comment new file mode 100644 index 000000000..bb6a89082 --- /dev/null +++ b/doc/special_remotes/directory/comment_17_01559b914ed43c4468e0980f3f794ea7._comment @@ -0,0 +1,23 @@ +[[!comment format=mdwn + username="uwe.nagler@9f80ad68e498fcdb09e20b17ff4539f94ef73ea9" + nickname="uwe.nagler" + subject="subdirectories above FILEKEY directory" + date="2016-05-31T11:51:56Z" + content=""" +Format appears to be /BASE_DIR/xxx/yyy/FILEKEY/FILEKEY + +How can I get the xxx/yyy or the complete storage path of an annexed file in a fast way? + +Background:
+I have to \"chmod\" the xxx/yyy within an '.git/hooks/pre-commit' action (shared used NFS location).
+Following way using 'find' needs too much time in case of a big remote: + + $ git annex info --fast inputbinaries | grep 'directory:' | awk '{print $2}' + /gitworkspace/inputbinaries/DWDM1830-all_playground + + $ git annex info vendor-libs/x86/libsnmpdm.a | grep 'key:' | awk '{print $2}' + SHA256E-s3992448--82604383354b28f8efcdf8d83bb63607a8d5967551ded055e782ac342bb7f8e0.a + + $ find /gitworkspace/inputbinaries/DWDM1830-all_playground -type f -name SHA256E-s3992448--82604383354b28f8efcdf8d83bb63607a8d5967551ded055e782ac342bb7f8e0.a + /gitworkspace/inputbinaries/DWDM1830-all_playground/28e/785/SHA256E-s3992448--82604383354b28f8efcdf8d83bb63607a8d5967551ded055e782ac342bb7f8e0.a/SHA256E-s3992448--82604383354b28f8efcdf8d83bb63607a8d5967551ded055e782ac342bb7f8e0.a +"""]] -- cgit v1.2.3