[TYPO3-team-core-v5] Getting rid of DIRECTORY_SEPARATOR reloaded

Bastian Waidelich bastian at typo3.org
Wed Jul 30 09:33:50 CEST 2008


Malte Jansen wrote:

Good morning Malte,

>> Besides, a path can also point to a file

> So there two functions one for filepath and one for pathes.

I don't really think, that we would need an extra function just to 
append a slash. If you want to get the path to a file, simply add the 
filename as last parameter:
array('directory/subdirectory', 'filename');
or
array('directory/subdirectory/filename');

If you want a directory path, use the same syntax.
And if you finally want to append a filename to the returned path, use 
the same syntax once again ;)


>> a helper function might reduce duplicated code and  help other package developers.

> Perhaps these functions could be check with the FLOW3CGL

Yeah, that would be nice. But it's probably quite hard to find out, 
where and how to apply this.. a path could just be inside some 
mysterious variable.

thx,
Bastian


-- 
slice up the elephant, baby!


More information about the TYPO3-team-core-v5 mailing list