Is it possible to use the result of one source code block not within another code block but actually within another source blocks header argument? I know this piece of functionality works
#+name: block-1
#+BEGIN_SRC emacs-lisp
(current-time-string)
#+END_SRC
#+BEGIN_SRC emacs-lisp :var input=block-1
(format "We got %S in block-1" input)
#+END_SRC
but what I want is something like this, i.e. to reuse the result to e.g. form a path for the dir header argument
#+name: block-1
#+BEGIN_SRC emacs-lisp
(current-time-string)
#+END_SRC
#+BEGIN_SRC emacs-lisp :var input=block-1 :dir path/input
(format "We got %S in block-1" input)
#+END_SRC
so what I want to achieve is to have a variable path for the :dir header argument.
maybe there is a way to concatenate the argument to :dir in a dynamic way depending on what the first source block resulted in?