[TYPO3-dev] ExtManager: ignoring files in CVS and .svn subdirectories of an extension

Stefan Geith typo3dev2006 at geithware.de
Thu Jul 13 10:52:02 CEST 2006


Dmitry Dulepov schrieb:
> Hi!
> 
> Stefan Geith wrote:
>> I changed in class.t3lib_div.php in the function
>>    function getAllFilesAndFoldersInPath(...)
>> the line
>>    if ((string)$subdirs!='') {
>> to
>>    if ((string)$subdirs!='' && (string)$subdirs!='.svn') {
>>
>> That does the job.
>>
>> May be the right way would be to use a
>> $TYPO3_CONF_VARS[...]-Value for all
>> Directory names to be suppresed.
>> Preset could be '.svn,.cvs'.
>>
>> I would like to see this in 4.01 ... ;)
> 
> t3lib_div is not a right place for this. It is specific to EM, so it 
> should be done in EM.

But there could be an optional parameter for
    function getAllFilesAndFoldersInPath(...,$ignoreDirs=Array())
and the EM passes it's
    $TYPO3_CONF_VARS['EM']['ignoreDirs']
to ignore these files ...

-

Stefan




More information about the TYPO3-dev mailing list