#Random question:

1 messages · Page 1 of 1 (latest)

stark dust
#

inputDirectory.Name() always returns / no matter what directory I passed in... I was expecting at least the last part of the path (the child directory name), or the full path...

echo herald
#

there is no real way to do it - sort of deliberately

#

the reason is, if you pass in different directories with the same contents to a function, we want to be able to cache the function

#

curious what the use case is, i think allowing .Name to be the name of the directory feels alright (if we chose to add that), but we don't have any way to get the full path (even for directories entirely managed inside dagger)

stark dust
#

mmm, no problem, it's easy to workaround.

I was writing something that outputs a template (a github workflow file) that references the input directory as the trigger of a workflow, and was trying not to ask for the path of the directory I requested as an input