C# Class Fan.Sys.LocalFile

LocalFile represents a file or directory in the local file system.
Inheritance: File
Show file Open project: xored/f4 Class Usage Examples

Public Methods

Method Description
@in ( Long bufSize ) : InStream
@out ( bool append, Long bufSize ) : OutStream
@typeof ( ) : Type
LocalFile ( System.IO.FileSystemInfo file ) : System.Collections
LocalFile ( System.IO.FileSystemInfo file, bool isDir ) : System.Collections
LocalFile ( Uri uri ) : System.Collections
LocalFile ( Uri uri, System.IO.FileSystemInfo file ) : System.Collections
create ( ) : File
delete ( ) : void
deleteOnExit ( ) : File
exists ( ) : bool
fileNameToUriName ( string name ) : string
fileToUri ( System.IO.FileSystemInfo file, bool isDir ) : Uri
list ( Regex pattern ) : List
mmap ( string mode, long pos, Long size ) : Buf
modified ( ) : DateTime
modified ( DateTime time ) : void
moveTo ( File to ) : File
normalize ( ) : File
open ( string mode ) : Buf
osPath ( ) : string
parent ( ) : File
pathToUri ( string path, bool isDir ) : Uri
pathToUri ( string path, bool isDir, string scheme ) : Uri
plus ( Uri uri, bool checkSlash ) : File
size ( ) : Long
toDotnet ( ) : System.IO.FileSystemInfo
toUri ( System.IO.FileSystemInfo file ) : Uri
uriToFile ( Uri uri ) : System.IO.FileSystemInfo
uriToPath ( Uri uri ) : string

Private Methods

Method Description
LocalFile ( ) : System.Collections
createDir ( ) : void
createFile ( ) : void
handleProcessExit ( object sender, System args ) : void

Method Details

@in() public method

public @in ( Long bufSize ) : InStream
bufSize Long
return InStream

@out() public method

public @out ( bool append, Long bufSize ) : OutStream
append bool
bufSize Long
return OutStream

@typeof() public method

public @typeof ( ) : Type
return Type

LocalFile() public method

public LocalFile ( System.IO.FileSystemInfo file ) : System.Collections
file System.IO.FileSystemInfo
return System.Collections

LocalFile() public method

public LocalFile ( System.IO.FileSystemInfo file, bool isDir ) : System.Collections
file System.IO.FileSystemInfo
isDir bool
return System.Collections

LocalFile() public method

public LocalFile ( Uri uri ) : System.Collections
uri Uri
return System.Collections

LocalFile() public method

public LocalFile ( Uri uri, System.IO.FileSystemInfo file ) : System.Collections
uri Uri
file System.IO.FileSystemInfo
return System.Collections

create() public method

public create ( ) : File
return File

delete() public method

public delete ( ) : void
return void

deleteOnExit() public method

public deleteOnExit ( ) : File
return File

exists() public method

public exists ( ) : bool
return bool

fileNameToUriName() public static method

public static fileNameToUriName ( string name ) : string
name string
return string

fileToUri() public static method

public static fileToUri ( System.IO.FileSystemInfo file, bool isDir ) : Uri
file System.IO.FileSystemInfo
isDir bool
return Uri

list() public method

public list ( Regex pattern ) : List
pattern Regex
return List

mmap() public method

public mmap ( string mode, long pos, Long size ) : Buf
mode string
pos long
size Long
return Buf

modified() public method

public modified ( ) : DateTime
return DateTime

modified() public method

public modified ( DateTime time ) : void
time DateTime
return void

moveTo() public method

public moveTo ( File to ) : File
to File
return File

normalize() public method

public normalize ( ) : File
return File

open() public method

public open ( string mode ) : Buf
mode string
return Buf

osPath() public method

public osPath ( ) : string
return string

parent() public method

public parent ( ) : File
return File

pathToUri() public static method

public static pathToUri ( string path, bool isDir ) : Uri
path string
isDir bool
return Uri

pathToUri() public static method

public static pathToUri ( string path, bool isDir, string scheme ) : Uri
path string
isDir bool
scheme string
return Uri

plus() public method

public plus ( Uri uri, bool checkSlash ) : File
uri Uri
checkSlash bool
return File

size() public method

public size ( ) : Long
return Long

toDotnet() public method

public toDotnet ( ) : System.IO.FileSystemInfo
return System.IO.FileSystemInfo

toUri() public static method

public static toUri ( System.IO.FileSystemInfo file ) : Uri
file System.IO.FileSystemInfo
return Uri

uriToFile() public static method

public static uriToFile ( Uri uri ) : System.IO.FileSystemInfo
uri Uri
return System.IO.FileSystemInfo

uriToPath() public static method

public static uriToPath ( Uri uri ) : string
uri Uri
return string