Copy() public method

public Copy ( string source, string destination, Action callback = null ) : void
source string
destination string
callback Action
return void
コード例 #1
0
ファイル: FileTests.cs プロジェクト: gigi81/sharpuv
        public void CopyFile()
        {
            const string data = "test string";

            var handle = new WriteFileHandle(data);
            handle.OpenWrite(TestFilePath);

            Loop.Current.Run();

            var handle2 = new Filesystem();
            handle2.Copy(TestFilePath, TestFilePath + "copy", (args) =>
            {
                Assert.IsTrue(args.Successful);
            });

            Loop.Current.Run();
        }