Is Empty functionality to the Directory Functions

From: Date: Wed, 17 Dec 2008 19:01:17 +0000
Subject: Is Empty functionality to the Directory Functions
Groups: php.internals 
Request: Send a blank email to internals+get-42304@lists.php.net to get a copy of this message
This is my 1st suggestion to the internals :) Anywho, there has been some discussion in the is_dir() comments on php.net (http://is.php.net/manual/en/function.is-dir.php) about a function that returns bool if a directory is empty or not. Just throwing it out there if it should be implemented to the current list of Directory Functions. $dir = dir("/foo/bar"); var_dump($dir->empty()); // bool(true) Ólafur Waage olafurw@gmail.com

« previous php.internals (#42304) next »