# [EMAIL PROTECTED] / 2007-02-08 16:47:26 +0200:
> I am reading directories and one of the directories has a space in it so 
> when I run:
> 
> if (is_dir($dir))
> 
> it returns false.

How much space? You need at least 1GB. But seriously, I don't see the
behaviour you mention:

<?php

class DirnameWithSpace extends Tence_TestCase
{
    function setUp()
    {
        $this->d = $this->mkdtemp();
        $this->dir = $this->d->path() . '/foo bar';
        mkdir($this->dir);
    }
    function test()
    {
        return $this->assertTrue(is_dir($this->dir));
    }
}

?>

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to