my repo looks like this:
dir1/ file1.txt file2.txt dir2/ file3.txt file4.txt
I’m tryin to use Octo pack to create a package that only includes
dir1/ file1.txt file2.txt
I’ve tried several ways of using the “include” flag, but whatever I try, the files are packaged without preserving the folder structure. I guess I’m asking for:
The documentation is very light in this area and should imho be improved on. It doesn’t include enough information about what the folder behavior is, and how “basePath” and “include” relates. I’m confused, because my impression would be that “basePath” should dictate the “start dir”, and thus any directory path specified using “include” would then result in a “directoried” package.
Any help in my particular case would be appreciated.
The documentation for “include” is probably wrong:
“[Optional, Multiple] Add a file pattern to include, relative to the base path e.g. /bin/-.dll - if none are specified, defaults to **". /bin is not a relative path, its an absolute path on Linux. The relative path would be "bin/.dll” The hyphen also adds to the confusion. Again, I would ask that documenation would be improved to be clearer on this topic.