Re: is_dir reading a folder with a space in the name?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# angelo@xxxxxxxxxxxx / 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux