Fix file types

git-svn-id: http://svn.automattic.com/wordpress/trunk@7128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-01 23:29:19 +00:00
parent 8dcb1bc61c
commit 97cd4acf01
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ class WP_Filesystem_Direct{
$struc['lastmodunix']= $this->mtime($path.'/'.$entry); $struc['lastmodunix']= $this->mtime($path.'/'.$entry);
$struc['lastmod'] = date('M j',$struc['lastmodunix']); $struc['lastmod'] = date('M j',$struc['lastmodunix']);
$struc['time'] = date('h:i:s',$struc['lastmodunix']); $struc['time'] = date('h:i:s',$struc['lastmodunix']);
$struc['type'] = $this->is_dir($path.'/'.$entry) ? 'folder' : 'file'; $struc['type'] = $this->is_dir($path.'/'.$entry) ? 'd' : 'f';
if('folder' == $struc['type'] ){ if('folder' == $struc['type'] ){
$struc['files'] = array(); $struc['files'] = array();