[dev] Re: [ansel] found why ansel dont stores images in subgallery
Ben Chavet
ben at chavet.net
Wed Mar 31 11:02:55 PST 2004
Heh, I meant to say DIRECTORY_SEPARATOR not PATH_SEPARATOR...
I'm sure we don't want to set a config value for this. I was just
curious how a
windows box would handle '/'.
--Ben
Quoting duck <duck at obala.net>:
> I dont think that the PEAR PATH_SEPARATOR constant is a good idea
> science per default on windows is set as ";" ... (Pear.php:44-50)
> why not a config value?
> $conf['vfs']['path_separator']
> if is not set, don't even transform :
>
> function translate_path($path) {
> if ( isset($GLOBALS['conf']['vfs']['path_separator']) ) {
> return str_replace(':',
> $GLOBALS['conf']['vfs']['path_separator'], $path);
> } else {
> return $path;
> }
> }
>
> Duck
>
> Ben Chavet wrote:
>
>>> it tries to save the in sub gallery in the way: ".horde/ansel/schedul:test"
>>> of course the system wont let him do this
>>> for OS compatibility issues you should translate the path
>>> something like
>>>
>>> function translate_path($path) {
>>> return str_replace(':', '/', $path);
>>> }
>>
>>
>> would it be better to use '/' or PATH_SEPARATOR for something like this?
>>
>> --Ben
>
>
> --
> Horde developers mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
More information about the dev
mailing list