diff options
author | wei <> | 2006-08-29 00:38:32 +0000 |
---|---|---|
committer | wei <> | 2006-08-29 00:38:32 +0000 |
commit | 07f24ace21f71baba4a3e278fad90033efb6fea2 (patch) | |
tree | 12a3649f0b457ef243868e3875f18610758c6c6a | |
parent | 546b2e8e6bcb87b32c43b683a2f3c767632d8e18 (diff) |
add chmod for copyDirectory
-rw-r--r-- | framework/Web/TAssetManager.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/Web/TAssetManager.php b/framework/Web/TAssetManager.php index 5e861cc2..707324d3 100644 --- a/framework/Web/TAssetManager.php +++ b/framework/Web/TAssetManager.php @@ -222,7 +222,10 @@ class TAssetManager extends TModule protected function copyDirectory($src,$dst)
{
if(!is_dir($dst))
+ {
@mkdir($dst);
+ @chmod($dst, 0777);
+ }
$folder=@opendir($src);
while($file=@readdir($folder))
{
|