From d2490ddef6e002dbc30ab5dcd14d751b64f82ad4 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 5 Sep 2015 16:02:34 +0100 Subject: more tests --- lib/WebCoso.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/WebCoso.pm b/lib/WebCoso.pm index 46db3c0..5fe9a07 100644 --- a/lib/WebCoso.pm +++ b/lib/WebCoso.pm @@ -30,7 +30,9 @@ class WebCoso { } method put-file($dir,$basename,$lang,$ext,$contents) { - $!tmpdir.child($dir).child("{$basename}.{$lang}.{$ext}").spurt($contents); + my $t = $!tmpdir.child($dir); + $t.mkdir; + $t.child("{$basename}.{$lang}.{$ext}").spurt($contents); return; } -- cgit v1.2.3