From 0f37cbf6a34eb57aa1b5ca09d1cbe3f607997b88 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 29 Sep 2017 19:29:11 -0400 Subject: sisupod.zip related fixes --- org/default_paths.org | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'org/default_paths.org') diff --git a/org/default_paths.org b/org/default_paths.org index 7dfef88..a6d9023 100644 --- a/org/default_paths.org +++ b/org/default_paths.org @@ -133,18 +133,21 @@ doc 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(); @@ -165,6 +168,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); } -- cgit v1.2.3