[Catalyst-commits] r6919 - trunk/Catalyst-Plugin-Session-Store-FastMmap/lib/Catalyst/Plugin/Session/Store

nothingmuch at dev.catalyst.perl.org nothingmuch at dev.catalyst.perl.org
Tue Sep 18 18:13:09 GMT 2007


Author: nothingmuch
Date: 2007-09-18 18:13:08 +0100 (Tue, 18 Sep 2007)
New Revision: 6919

Modified:
   trunk/Catalyst-Plugin-Session-Store-FastMmap/lib/Catalyst/Plugin/Session/Store/FastMmap.pm
Log:
dmaki++ for mkpath fix

Modified: trunk/Catalyst-Plugin-Session-Store-FastMmap/lib/Catalyst/Plugin/Session/Store/FastMmap.pm
===================================================================
--- trunk/Catalyst-Plugin-Session-Store-FastMmap/lib/Catalyst/Plugin/Session/Store/FastMmap.pm	2007-09-18 13:21:50 UTC (rev 6918)
+++ trunk/Catalyst-Plugin-Session-Store-FastMmap/lib/Catalyst/Plugin/Session/Store/FastMmap.pm	2007-09-18 17:13:08 UTC (rev 6919)
@@ -110,8 +110,12 @@
         "session_data",
       );
 
-    Path::Class::dir($tmpdir)->mkpath;
+    my $dir = Path::Class::file($file)->parent;
 
+    unless (-d $dir) {
+        $dir->mkpath;
+    }
+
     my $cfg = $c->config->{session};
 
     $c->_session_fastmmap_storage(




More information about the Catalyst-commits mailing list