[TYPO3-dev] mkdir and mkdir_deep

Philipp Gampe typo3.lists at philippgampe.info
Mon Feb 20 15:27:30 CET 2012


Hi Oliver Salzburg,

Oliver Salzburg wrote:

> On 2012-02-20 14:08, Jigal van Hemert wrote:
>> The first parameter is the directory path you want to create.
>> The second parameter is optional and kept for backwards compatibility (=
>> it was used in the past but we don't want to break code which still uses
>> it)
> 
> Are you sure about that?
> I was reading the source here:
> http://typo3.org/fileadmin/typo3api-4.0.0/d6/d99/class_8t3lib__div_8php-
source.html

TYPO3 4.0.0 ??? seriously please use the official documentation:
http://api.typo3.org/typo3v4/master/html/classt3lib__div.html#a29fe9295cb3e206faac8916e70309a81

> It seemed to me like $destination has little relevance as long as
> $deepDir is an absolute path. Which would mean the first parameter is
> the less relevant one.
> 
> If $deepDir is empty, it seems like that would cause the whole foreach
> in mkdir_deep() to be skipped.

Might be true for older versions:
http://api.typo3.org/typo3v4/45/html/classt3lib__div.html#afc20029b8d695e59425bf811f3c5134a

All versions on http://api.typo3.org/

Best regards
-- 
Philipp Gampe – PGP-Key 0AD96065




More information about the TYPO3-dev mailing list