The SplFileInfo classIntroductionThe SplFileInfo class offers a high-level object-oriented interface to information for an individual file. Class synopsis
SplFileInfo
implements
Stringable
/* Methods */
public __construct(string
$filename )public intfalse getATime()
public string getBasename(string
$suffix = "")public intfalse getCTime()
public string getExtension()
public SplFileInfo getFileInfo(stringnull
$class = null )public string getFilename()
public intfalse getGroup()
public intfalse getInode()
public stringfalse getLinkTarget()
public intfalse getMTime()
public intfalse getOwner()
public string getPath()
public SplFileInfonull getPathInfo(stringnull
$class = null )public string getPathname()
public intfalse getPerms()
public stringfalse getRealPath()
public intfalse getSize()
public stringfalse getType()
public bool isDir()
public bool isExecutable()
public bool isFile()
public bool isLink()
public bool isReadable()
public bool isWritable()
public SplFileObject openFile(string
$mode = "r", bool $useIncludePath = false , resourcenull $context = null )public void setFileClass(string
$class = SplFileObject::class)public void setInfoClass(string
$class = SplFileInfo::class)public string __toString()
Changelog
|