Beispiel #1
0
 public async Task <ExecuteResult> ExecuteAsync()
 {
     if (string.IsNullOrWhiteSpace(_targetPath))
     {
         return(new ExecuteResult(false, "Path must be not empty or null"));
     }
     try
     {
         _cache.RestoreInfos = await _service.MoveFileItem(_cache.SelectedFileItem, _targetPath, true);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         return(new ExecuteResult(false, e.Message));
     }
     return(new ExecuteResult(true, string.Empty));
 }