Dir::isFile PHP Method

isFile() public method

+---------------------------------------------------------- 是否为文件 +---------------------------------------------------------- +----------------------------------------------------------
public isFile ( ) : boolen
return boolen +----------------------------------------------------------
    public function isFile()
    {
        $current = $this->current($this->_values);
        return $current['isFile'];
    }

Usage Example

Example #1
0
 function testEmptyDirectory()
 {
     $d2 = new Dir("/" . FRAMEWORK_CORE_PATH . "tests/io/test_dir/empty_dir");
     $this->assertTrue($d2->exists());
     $this->assertTrue($d2->isDir());
     $this->assertFalse($d2->isFile());
     //$this->assertTrue($d2->isEmpty()); //.svn ???
 }