Drasil icon indicating copy to clipboard operation
Drasil copied to clipboard

Create FilePath prefixes based on folders entered

Open harmanpreet-sagar opened this issue 1 year ago • 0 comments

Currently, we have created an input variable within Choices called folderVal which has a default value and the user can enter the number of folders entered within each example to generate the FilePath for the Drasil Logo in the ReadMes.

This can be expanded so that a record is kept of the prefixes that can be attached to the various files referenced which the user can extract and prepend to the base FilePath of the reference.

Based on the meeting on Thursday, (June 01, 2023), we should explore ways that we could potentially expand the above-mentioned functionality so that it can be used universally throughout Drasil for FilePath references.

The main problem that we would face based on my exploration is extracting the FilePaths using getCurrentDirectory which has a type IO() and converting the obtained path to a FilePath without IO() so that it can be used for reference purposes.

Based on #3467, #3418, and #3451.

harmanpreet-sagar avatar Jun 05 '23 15:06 harmanpreet-sagar