aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output/paths_output.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-09-29 19:29:11 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit0f37cbf6a34eb57aa1b5ca09d1cbe3f607997b88 (patch)
tree569baa56ccd6278b460b026a8ccb4a4f7bba5886 /src/sdp/output/paths_output.d
parent0.19.0 conf make meta, composite struct, instead of associative array (diff)
sisupod.zip related fixes
Diffstat (limited to 'src/sdp/output/paths_output.d')
-rw-r--r--src/sdp/output/paths_output.d14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/sdp/output/paths_output.d b/src/sdp/output/paths_output.d
index 5902b6b..ae4d4ac 100644
--- a/src/sdp/output/paths_output.d
+++ b/src/sdp/output/paths_output.d
@@ -10,18 +10,21 @@ import sdp.meta.rgx;
template SiSUpathsSisupod() {
mixin SiSUrgxInit;
static auto rgx = Rgx();
- string base_dir = "sisupod";
- string suffix = ".zip";
+ string _base_dir = "sisupod";
+ string _suffix = ".zip";
auto SiSUpathsSisupod()() {
struct _PathsStruct {
string base_filename(string fn_src) {
return fn_src.baseName.stripExtension;
}
+ string sisupod_dir() {
+ return _base_dir;
+ }
string sisupod_filename(string fn_src) {
- return base_dir.chainPath(base_filename(fn_src) ~ suffix).array;
+ return _base_dir.chainPath(base_filename(fn_src) ~ _suffix).array;
}
string base(string fn_src) {
- return base_dir.chainPath(base_filename(fn_src)).array;
+ return _base_dir.chainPath(base_filename(fn_src)).array;
}
}
return _PathsStruct();
@@ -36,6 +39,9 @@ template SiSUpathsSisupodZipped() {
) {
struct _PathsStruct {
auto spod_pths = SiSUpathsSisupod!()();
+ string sisupod_dir() {
+ return spod_pths.sisupod_dir;
+ }
string base_filename(string fn_src) {
return spod_pths.base_filename(fn_src);
}