public bool BackupDocumentsDirectory(string BundleIdentifier, string DestinationDocumentsDirectory)
        {
            return(PerformActionOnAllDevices(StandardEnumerationDelayMS, delegate(MobileDeviceInstance Device)
            {
                bool bResult = true;
                string DeviceType = Device.ProductType;
                if (String.IsNullOrEmpty(DeviceId) || Device.DeviceId == DeviceId ||
                    (DeviceId.Contains("All_tvOS_On") && DeviceType.Contains("TV")) ||
                    (DeviceId.Contains("All_iOS_On") && !DeviceType.Contains("TV")))
                {
                    string SafeDeviceName = MobileDeviceInstance.SanitizePathNoFilename(Device.DeviceName);

                    // Destination folder
                    string TargetFolder = Path.Combine(DestinationDocumentsDirectory, SafeDeviceName);

                    // Source folder
                    string SourceFolder = "/Documents/";

                    bResult = Device.TryBackup(BundleIdentifier, SourceFolder, TargetFolder + SourceFolder);
                    SourceFolder = "/Library/Caches/";
                    bResult = Device.TryBackup(BundleIdentifier, SourceFolder, TargetFolder + SourceFolder);

                    ReportIF.Log("");
                }
                return bResult;
            }));
        }
        public bool BackupDocumentsDirectory(string BundleIdentifier, string DestinationDocumentsDirectory)
        {
            return(PerformActionOnAllDevices(StandardEnumerationDelayMS, delegate(MobileDeviceInstance Device)
            {
                string SafeDeviceName = MobileDeviceInstance.SanitizePathNoFilename(Device.DeviceName);

                // Destination folder
                string TargetFolder = Path.Combine(DestinationDocumentsDirectory, SafeDeviceName);

                // Source folder
                string SourceFolder = "/Documents/";

                bool bResult = Device.TryBackup(BundleIdentifier, SourceFolder, TargetFolder);

                ReportIF.Log("");

                return bResult;
            }));
        }