W3cubDocs

/Haxe C#

FileInfo

package cs.system.io

extends FileSystemInfoMarshalByRefObject

@:final@:libType@:csNative@:native("System.IO.FileInfo") Available on cs

Constructor

@:final @:overload new (fileName:String)

Variables

read only Directory:DirectoryInfo

read only DirectoryName:String

IsReadOnly:Bool

read only Length:Int64

Methods

@:final @:overload AppendText ():StreamWriter

@:final @:overload CopyTo (destFileName:String):FileInfo

@:final @:overload CopyTo (destFileName:String, overwrite:Bool):FileInfo

@:final @:overload Create ():FileStream

@:final @:overload CreateText ():StreamWriter

@:final @:overload Decrypt ():Void

@:final @:overload Encrypt ():Void

@:final @:overload GetAccessControl ():FileSecurity

@:final @:overload GetAccessControl (includeSections:AccessControlSections):FileSecurity

@:final @:overload MoveTo (destFileName:String):Void

@:final @:overload Open (mode:FileMode):FileStream

@:final @:overload Open (mode:FileMode, access:FileAccess, share:FileShare):FileStream

@:final @:overload Open (mode:FileMode, access:FileAccess):FileStream

@:final @:overload OpenRead ():FileStream

@:final @:overload OpenText ():StreamReader

@:final @:overload OpenWrite ():FileStream

@:final @:overload Replace (destinationFileName:String, destinationBackupFileName:String):FileInfo

@:final @:overload Replace (destinationFileName:String, destinationBackupFileName:String, ignoreMetadataErrors:Bool):FileInfo

@:final @:overload SetAccessControl (fileSecurity:FileSecurity):Void

@:overload ToString ():String

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cs/system/io/FileInfo.html