Asset.php
[Pman.Core] / Asset.php
index e62a210..85abf79 100644 (file)
--- a/Asset.php
+++ b/Asset.php
@@ -123,8 +123,19 @@ class Pman_Core_Asset extends Pman {
         die('invalid');
     }
      
-    static function getAssetDir()
+    static function getCompileDir($type)
     {
+        if(empty($type)) {
+            return false;
+        }
+        
+        $ui = posix_getpwuid(posix_geteuid());
         
+        $compiledir = session_save_path() . '/' .
+                $ui['name'] . '-' . $ff->project . '-' . $ff->version . '-jscompile';
+        
+        if (!file_exists($compiledir)) {
+            mkdir($compiledir,0700,true);
+        }
     }
 }