C# 클래스 Phantom.Core.Builtins.IOFunctions

파일 보기 프로젝트 열기: JeremySkinner/Phantom 1 사용 예제들

공개 메소드들

메소드 설명
cp ( string source, string destination ) : void

Copies a file from one location to another.

exec ( string command ) : void
exec ( string command, IDictionary options ) : void
exec ( string command, string args ) : void

Executes the specified program with the specified arguments

exec ( string command, string args, IDictionary options ) : void

Executes the specified program with the specified arguments. You can also specify the working directory of the command by providing the hash option "WorkingDir"

mkdir ( string path ) : void

Creates a directory if it does not exist.

rm ( FileSystemInfo file ) : void

Deletes a file or directory

rm ( string path ) : void

Deletes a file or directory

비공개 메소드들

메소드 설명
DeleteDirectory ( string path ) : void
DeleteFile ( string path ) : void
SetAttributesNormal ( DirectoryInfo dir ) : void

The Delete() method will fail with UnauthorizedAccessException if any files in the directory tree have the read-only flag. Delete() cannot delete anything with read-only flag even if the user running the application has priviliges to delete these files.

rmdir ( string path ) : void

메소드 상세

cp() 공개 정적인 메소드

Copies a file from one location to another.
public static cp ( string source, string destination ) : void
source string Source file
destination string Destination
리턴 void

exec() 공개 정적인 메소드

public static exec ( string command ) : void
command string
리턴 void

exec() 공개 정적인 메소드

public static exec ( string command, IDictionary options ) : void
command string
options IDictionary
리턴 void

exec() 공개 정적인 메소드

Executes the specified program with the specified arguments
public static exec ( string command, string args ) : void
command string /// The command to execute ///
args string Additional args
리턴 void

exec() 공개 정적인 메소드

Executes the specified program with the specified arguments. You can also specify the working directory of the command by providing the hash option "WorkingDir"
public static exec ( string command, string args, IDictionary options ) : void
command string /// The command to execute ///
args string Additional args
options IDictionary /// A hash of options to set on the process (like WorkingDir) ///
리턴 void

mkdir() 공개 정적인 메소드

Creates a directory if it does not exist.
public static mkdir ( string path ) : void
path string
리턴 void

rm() 공개 정적인 메소드

Deletes a file or directory
public static rm ( FileSystemInfo file ) : void
file System.IO.FileSystemInfo /// File or directory to delete ///
리턴 void

rm() 공개 정적인 메소드

Deletes a file or directory
public static rm ( string path ) : void
path string /// File or directory to delete ///
리턴 void