From 6cfc512b1ce654ef831903e6ff9a6bf02f28cfb1 Mon Sep 17 00:00:00 2001 From: CandyAngel Date: Tue, 21 Jul 2015 12:11:45 +0000 Subject: Added a comment --- .../comment_2_15a6571d57794c3f1268c7a064e05bef._comment | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 doc/todo/Add___39__dir__39___option_to_addurl/comment_2_15a6571d57794c3f1268c7a064e05bef._comment (limited to 'doc') diff --git a/doc/todo/Add___39__dir__39___option_to_addurl/comment_2_15a6571d57794c3f1268c7a064e05bef._comment b/doc/todo/Add___39__dir__39___option_to_addurl/comment_2_15a6571d57794c3f1268c7a064e05bef._comment new file mode 100644 index 000000000..95504b1b2 --- /dev/null +++ b/doc/todo/Add___39__dir__39___option_to_addurl/comment_2_15a6571d57794c3f1268c7a064e05bef._comment @@ -0,0 +1,13 @@ +[[!comment format=mdwn + username="CandyAngel" + subject="comment 2" + date="2015-07-21T12:11:45Z" + content=""" +I was hoping something like tar's *-C*, or unzip's *-d* options would be easy to implement, given that git-annex will already create required directories when using --pathdepth. As far as I can tell, you can't mix --file and --pathdepth.. I'd have to reimplemnt --pathdepth and the directory creation in my script, which while not a major problem in Perl (aside from reinventing a potentially inferior wheel), may be if someone is using shell scripting. + +Maybe this request can be more generalised to *--prefix*? + +Then people could use --prefix to either just prefix the filename or set a directory for it to be put into. I had a look at Command/AddUrl.hs to see how feasible that would be but I'm struggling to follow it (not knowing Haskell yet). + +In the meantime(?), I have made my script remember the original directory it was started in and it cd's about as needed. +"""]] -- cgit v1.2.3