C# Class Sharpen.FileHelper

Datei anzeigen Open project: nonorganic/dssnet

Public Methods

Method Description
CanExecute ( FilePath path ) : bool
CanWrite ( FilePath path ) : bool
Delete ( FilePath path ) : bool
Exists ( FilePath path ) : bool
IsDirectory ( FilePath path ) : bool
IsFile ( FilePath path ) : bool
LastModified ( FilePath path ) : long
Length ( FilePath path ) : long
MakeDirWritable ( FilePath path ) : void
MakeFileWritable ( FilePath file ) : void
RenameTo ( FilePath path, string name ) : bool
SetExecutable ( FilePath path, bool exec ) : bool
SetLastModified ( FilePath path, long milis ) : bool
SetReadOnly ( FilePath path ) : bool

Private Methods

Method Description
FileHelper ( ) : System

Method Details

CanExecute() public method

public CanExecute ( FilePath path ) : bool
path FilePath
return bool

CanWrite() public method

public CanWrite ( FilePath path ) : bool
path FilePath
return bool

Delete() public method

public Delete ( FilePath path ) : bool
path FilePath
return bool

Exists() public method

public Exists ( FilePath path ) : bool
path FilePath
return bool

IsDirectory() public method

public IsDirectory ( FilePath path ) : bool
path FilePath
return bool

IsFile() public method

public IsFile ( FilePath path ) : bool
path FilePath
return bool

LastModified() public method

public LastModified ( FilePath path ) : long
path FilePath
return long

Length() public method

public Length ( FilePath path ) : long
path FilePath
return long

MakeDirWritable() public method

public MakeDirWritable ( FilePath path ) : void
path FilePath
return void

MakeFileWritable() public method

public MakeFileWritable ( FilePath file ) : void
file FilePath
return void

RenameTo() public method

public RenameTo ( FilePath path, string name ) : bool
path FilePath
name string
return bool

SetExecutable() public method

public SetExecutable ( FilePath path, bool exec ) : bool
path FilePath
exec bool
return bool

SetLastModified() public method

public SetLastModified ( FilePath path, long milis ) : bool
path FilePath
milis long
return bool

SetReadOnly() public method

public SetReadOnly ( FilePath path ) : bool
path FilePath
return bool