Fix file types
git-svn-id: https://develop.svn.wordpress.org/trunk@7128 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a8d4f53ea7
commit
6d1631aa47
@ -306,7 +306,7 @@ class WP_Filesystem_Direct{
|
||||
$struc['lastmodunix']= $this->mtime($path.'/'.$entry);
|
||||
$struc['lastmod'] = date('M j',$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'] ){
|
||||
$struc['files'] = array();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user