bool CreateFile(IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args)
{
var result = true;
var tmp = CreateTmpFile();
using(Stream s = new MemoryStream(File.ReadAllBytes(tmp)))
{
if(dst.Put(s, dst.IOPath, args, null, _filesToDelete) < 0)
{
result = false;
}
s.Close();
}
return result;
}