HaxeAPI
  • Version 4.3.5
    • 3.4.7
    • 4.0.5
    • 4.1.3
    • 4.2.5
    • 4.3.5
    • Development
  • Download Haxe
  • Learn Haxe
    • Introduction
    • Manual
    • Code Cookbook
    • API Documentation
    • Videos
    • Try Haxe online
    • Haxelib
  • Connect
    • Github
    • Bug reports
    • Stack Overflow
    • Forums
    • Discord
    • Gitter
    • Blog
    • Facebook
    • #haxe
    • @haxelang
    • @haxe_org
    • Contact
View source

class SplFileInfo

package php

extended by DirectoryIterator, PharFileInfo, SplFileObject

@:native("SplFileInfo")

Available on php

The SplFileInfo class offers a high-level object-oriented interface to information for an individual file.

See also:

  • https://www.php.net/manual/en/class.splfileinfo.php

Constructor

new(filename:String)

Methods

getATime():EitherType<Int, Bool>

@:value({ suffix : "" })getBasename(suffix:String = ""):String

getCTime():EitherType<Int, Bool>

getExtension():String

getFileInfo(?className:String):SplFileInfo

getFilename():String

getGroup():EitherType<Int, Bool>

getInode():EitherType<Int, Bool>

getLinkTarget():EitherType<String, Bool>

getMTime():EitherType<Int, Bool>

getOwner():EitherType<Int, Bool>

getPath():String

getPathInfo(?className:String):Null<SplFileInfo>

getPathname():String

getPerms():EitherType<Int, Bool>

getRealPath():EitherType<String, Bool>

getSize():EitherType<Int, Bool>

getType():EitherType<SplFileInfoType, Bool>

isDir():Bool

isExecutable():Bool

isFile():Bool

isLink():Bool

isReadable():Bool

isWritable():Bool

@:value({ useIncludePath : false, mode : "r" })openFile(mode:String = "r", useIncludePath:Bool = false, ?context:Resource):SplFileObject

setFileClass(?className:String):Void

setInfoClass(?className:String):Void

This documentation is generated for version 4.3.5

© 2024  Haxe Foundation | Contribute to Haxe