File

package java.io

implements Comparable<File>, Serializable

Available on java

Static variables

staticfinalread onlypathSeparator:String

staticfinalread onlypathSeparatorChar:Char16

staticfinalread onlyseparator:String

staticfinalread onlyseparatorChar:Char16

Static methods

staticcreateTempFile(param1:String, param2:String):File

staticcreateTempFile(param1:String, param2:String, param3:File):File

staticlistRoots():NativeArray<File>

Constructor

new(param1:URI)

new(param1:String)

new(param1:String, param2:String)

new(param1:File, param2:String)

Methods

canExecute():Bool

canRead():Bool

canWrite():Bool

compareTo(param1:Dynamic):Int

compareTo(param1:File):Int

createNewFile():Bool

delete():Bool

deleteOnExit():Void

equals(param1:Dynamic):Bool

exists():Bool

getAbsoluteFile():File

getAbsolutePath():String

getCanonicalFile():File

getCanonicalPath():String

getFreeSpace():Int64

getName():String

getParent():String

getParentFile():File

getPath():String

getTotalSpace():Int64

getUsableSpace():Int64

hashCode():Int

isAbsolute():Bool

isDirectory():Bool

isFile():Bool

isHidden():Bool

lastModified():Int64

length():Int64

list(param1:FilenameFilter):NativeArray<String>

list():NativeArray<String>

listFiles(param1:FileFilter):NativeArray<File>

listFiles():NativeArray<File>

listFiles(param1:FilenameFilter):NativeArray<File>

mkdir():Bool

mkdirs():Bool

renameTo(param1:File):Bool

setExecutable(param1:Bool):Bool

setExecutable(param1:Bool, param2:Bool):Bool

setLastModified(param1:Int64):Bool

setReadOnly():Bool

setReadable(param1:Bool):Bool

setReadable(param1:Bool, param2:Bool):Bool

setWritable(param1:Bool):Bool

setWritable(param1:Bool, param2:Bool):Bool

toPath():Path

toString():String

toURI():URI

toURL():URL

Deprecated:

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/java/io/File.html