diff options
author | xue <> | 2006-05-03 18:09:10 +0000 |
---|---|---|
committer | xue <> | 2006-05-03 18:09:10 +0000 |
commit | ee6dd9872aabf90d71662c4c39a33f071a8886d0 (patch) | |
tree | 2a4e5146b57da5196c9d1dc708970ab0d71df459 /framework/Web/TAssetManager.php | |
parent | 6495c05e19db5484c3accc44cd9fcb8177202176 (diff) |
TAssetManager now ignores .svn directories
Diffstat (limited to 'framework/Web/TAssetManager.php')
-rw-r--r-- | framework/Web/TAssetManager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/TAssetManager.php b/framework/Web/TAssetManager.php index bfc5ef8b..deae32ff 100644 --- a/framework/Web/TAssetManager.php +++ b/framework/Web/TAssetManager.php @@ -213,6 +213,7 @@ class TAssetManager extends TModule * File modification time is used to ensure the copied files are latest.
* @param string the source directory
* @param string the destination directory
+ * @todo a generic solution to ignore certain directories and files
*/
protected function copyDirectory($src,$dst)
{
@@ -221,7 +222,7 @@ class TAssetManager extends TModule $folder=@opendir($src);
while($file=@readdir($folder))
{
- if($file==='.' || $file==='..')
+ if($file==='.' || $file==='..' || $file==='.svn')
continue;
else if(is_file($src.'/'.$file))
{
|