Re: is_dir reading a folder with a space in the name?
| From: | T.Lensselink | Date: | Thu, 08 Feb 2007 17:18:52 +0000 |
| Subject: | Re: is_dir reading a folder with a space in the name? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248593@lists.php.net to get a copy of this message | ||
:) You are right about the robustness part..
The directory i made by hand. So no need to create and remove it with
code. And using a test suit to show this simple example seems like a bit
of overkill to me. Just wanted to show directories with spaces
function properly when used with is_dir().
Roman Neuhauser wrote:
> # admin@ensifex.nl / 2007-02-08 16:14:57 +0100:
>> Like Roman said. I also don't see this behaviour.
>> Although my test is a lot more simple :)
>
> It's not complete:
>
>> <?php
>> $dir = "test dir";
>
> mkdir($dir);
>
>> if (is_dir($dir)) {
>> echo "It's a dir :)";
>> }
>
> rmdir($dir);
>
>
> But even with those two calls, your and my tests aren't on the same
> level of robustness. Sure, the OP didn't ask for tests of *any*
> robustness, I'm just saying that the increased verbosity gives the test
> properties your test does not have.
>