private void MovesFile(SimpleFile file, ConnectionInfo inf) { string path = Directory.GetCurrentDirectory() + @"\Dir"; Directory.CreateDirectory(path); var fi = file.MoveToPath(path); if (Copied(path, fi.FullPath) && Deleted()) { condition = true; } fi.Delete(); fi.Dispose(); Directory.Delete(path, true); }
private static void S_OnClientRecieveFile(SimpleFile file, ConnectionInfo info) { string Path = Directory.GetCurrentDirectory(); Console.WriteLine(file.MoveToPath(Path, "test", true).Name); }