Asset.php
authorjohn <john@roojs.com>
Wed, 15 Aug 2018 06:11:27 +0000 (14:11 +0800)
committerjohn <john@roojs.com>
Wed, 15 Aug 2018 06:11:27 +0000 (14:11 +0800)
Asset.php

index 892d6b3..85abf79 100644 (file)
--- a/Asset.php
+++ b/Asset.php
@@ -130,5 +130,12 @@ class Pman_Core_Asset extends Pman {
         }
         
         $ui = posix_getpwuid(posix_geteuid());
+        
+        $compiledir = session_save_path() . '/' .
+                $ui['name'] . '-' . $ff->project . '-' . $ff->version . '-jscompile';
+        
+        if (!file_exists($compiledir)) {
+            mkdir($compiledir,0700,true);
+        }
     }
 }