Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Allow simple patterns in CAssetManager excludeFiles #258

Closed
qiangxue opened this Issue · 2 comments

3 participants

@qiangxue
Owner

What steps will reproduce the problem?
This initially started as a way of excluding AppleDot files (matching the pattern « ._* » ), but could be useful in other situations. For example we may want to keep some source files like *.psd in the protected assets folder, but not publish them.

What is the expected output? What do you see instead?
When publishing assets, files/directories matching the pattern are not copied over. Currently they are.

What version of the product are you using? On what operating system?
1.1.8 on Linux and Mac

Migrated from http://code.google.com/p/yii/issues/detail?id=2967


earlier comments

qiang.xue said, at 2012-01-01T03:37:10.000Z:

set for 1.1.10 milestone

qiang.xue said, at 2012-01-01T03:37:36.000Z:

set for 1.1.10 milestone

@suralc suralc referenced this issue from a commit in suralc/yii
@suralc suralc Added fnmatch based filename matching to CFileHelper and CAssetManager.
This adds a fnmatch array wrapper and a back port for php
< 5.3 on windows. This will also fix/affect #258.
The back port is based on http://www.php.net/manual/en/function.fnmatch.php#100207
3fa101e
@suralc

@yiisoft This could be done via built-in functions (example: fnmatch). But most of them would higher yiis requirements. Comit above should keep yiis requirements without adding to much regex or configuration options.
Proposal:
suralc@3fa101e

@cebe
Collaborator

feature implemented in yii2. Will not add it to yii 1.1 unless someone sends a PR with backport.

@cebe cebe closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.