public OpenFileCreateScope ( String FileName, Action |
||
FileName | String | |
Action | Action |
|
리턴 | void |
/// <summary> /// /// </summary> /// <param name="SourceFileSystem"></param> /// <param name="SourcePath"></param> /// <param name="DestFileSystem"></param> /// <param name="DestPath"></param> static public void CopyFile(FileSystem SourceFileSystem, String SourcePath, FileSystem DestFileSystem, String DestPath) { DestFileSystem.OpenFileCreateScope(DestPath, (OutStream) => { SourceFileSystem.OpenFileReadScope(SourcePath, (InStream) => { InStream.CopyToFast(OutStream); }); }); }
/// <summary> /// /// </summary> /// <param name="SourceFileSystem"></param> /// <param name="SourcePath"></param> /// <param name="DestFileSystem"></param> /// <param name="DestPath"></param> static public void CopyFile(FileSystem SourceFileSystem, String SourcePath, FileSystem DestFileSystem, String DestPath) { DestFileSystem.OpenFileCreateScope(DestPath, (OutStream) => { SourceFileSystem.OpenFileReadScope(SourcePath, (InStream) => { InStream.CopyToFast(OutStream); }); }); }