@@ -32,7 +32,7 @@ public interface IFilesystemOperations : IDisposable
32
32
/// </returns>
33
33
Task < ( IStorageHistory , IStorageItem ) > CreateAsync ( IStorageItemWithPath source , IProgress < FileSystemStatusCode > errorCode , CancellationToken cancellationToken ) ;
34
34
35
- Task < IStorageHistory > CreateShortcutItemsAsync ( IEnumerable < IStorageItemWithPath > source , IEnumerable < string > destination , IProgress < float > progress , IProgress < FileSystemStatusCode > errorCode , CancellationToken cancellationToken ) ;
35
+ Task < IStorageHistory > CreateShortcutItemsAsync ( IList < IStorageItemWithPath > source , IList < string > destination , IProgress < float > progress , IProgress < FileSystemStatusCode > errorCode , CancellationToken cancellationToken ) ;
36
36
37
37
/// <summary>
38
38
/// Copies <paramref name="source"/> to <paramref name="destination"/> fullPath
@@ -81,19 +81,19 @@ Task<IStorageHistory> CopyAsync(IStorageItemWithPath source,
81
81
/// <summary>
82
82
/// Copies <paramref name="source"/> to <paramref name="destination"/> fullPath
83
83
/// </summary>
84
- Task < IStorageHistory > CopyItemsAsync ( IEnumerable < IStorageItem > source ,
85
- IEnumerable < string > destination ,
86
- IEnumerable < FileNameConflictResolveOptionType > collisions ,
84
+ Task < IStorageHistory > CopyItemsAsync ( IList < IStorageItem > source ,
85
+ IList < string > destination ,
86
+ IList < FileNameConflictResolveOptionType > collisions ,
87
87
IProgress < float > progress ,
88
88
IProgress < FileSystemStatusCode > errorCode ,
89
89
CancellationToken cancellationToken ) ;
90
90
91
91
/// <summary>
92
92
/// Copies <paramref name="source"/> to <paramref name="destination"/> fullPath
93
93
/// </summary>
94
- Task < IStorageHistory > CopyItemsAsync ( IEnumerable < IStorageItemWithPath > source ,
95
- IEnumerable < string > destination ,
96
- IEnumerable < FileNameConflictResolveOptionType > collisions ,
94
+ Task < IStorageHistory > CopyItemsAsync ( IList < IStorageItemWithPath > source ,
95
+ IList < string > destination ,
96
+ IList < FileNameConflictResolveOptionType > collisions ,
97
97
IProgress < float > progress ,
98
98
IProgress < FileSystemStatusCode > errorCode ,
99
99
CancellationToken cancellationToken ) ;
@@ -145,19 +145,19 @@ Task<IStorageHistory> MoveAsync(IStorageItemWithPath source,
145
145
/// <summary>
146
146
/// Moves <paramref name="source"/> to <paramref name="destination"/> fullPath
147
147
/// </summary>
148
- Task < IStorageHistory > MoveItemsAsync ( IEnumerable < IStorageItem > source ,
149
- IEnumerable < string > destination ,
150
- IEnumerable < FileNameConflictResolveOptionType > collisions ,
148
+ Task < IStorageHistory > MoveItemsAsync ( IList < IStorageItem > source ,
149
+ IList < string > destination ,
150
+ IList < FileNameConflictResolveOptionType > collisions ,
151
151
IProgress < float > progress ,
152
152
IProgress < FileSystemStatusCode > errorCode ,
153
153
CancellationToken cancellationToken ) ;
154
154
155
155
/// <summary>
156
156
/// Moves <paramref name="source"/> to <paramref name="destination"/> fullPath
157
157
/// </summary>
158
- Task < IStorageHistory > MoveItemsAsync ( IEnumerable < IStorageItemWithPath > source ,
159
- IEnumerable < string > destination ,
160
- IEnumerable < FileNameConflictResolveOptionType > collisions ,
158
+ Task < IStorageHistory > MoveItemsAsync ( IList < IStorageItemWithPath > source ,
159
+ IList < string > destination ,
160
+ IList < FileNameConflictResolveOptionType > collisions ,
161
161
IProgress < float > progress ,
162
162
IProgress < FileSystemStatusCode > errorCode ,
163
163
CancellationToken cancellationToken ) ;
@@ -214,7 +214,7 @@ Task<IStorageHistory> DeleteAsync(IStorageItemWithPath source,
214
214
/// <summary>
215
215
/// Deletes provided <paramref name="source"/>
216
216
/// </summary>
217
- Task < IStorageHistory > DeleteItemsAsync ( IEnumerable < IStorageItem > source ,
217
+ Task < IStorageHistory > DeleteItemsAsync ( IList < IStorageItem > source ,
218
218
IProgress < float > progress ,
219
219
IProgress < FileSystemStatusCode > errorCode ,
220
220
bool permanently ,
@@ -223,7 +223,7 @@ Task<IStorageHistory> DeleteItemsAsync(IEnumerable<IStorageItem> source,
223
223
/// <summary>
224
224
/// Deletes provided <paramref name="source"/>
225
225
/// </summary>
226
- Task < IStorageHistory > DeleteItemsAsync ( IEnumerable < IStorageItemWithPath > source ,
226
+ Task < IStorageHistory > DeleteItemsAsync ( IList < IStorageItemWithPath > source ,
227
227
IProgress < float > progress ,
228
228
IProgress < FileSystemStatusCode > errorCode ,
229
229
bool permanently ,
@@ -269,6 +269,66 @@ Task<IStorageHistory> RenameAsync(IStorageItemWithPath source,
269
269
IProgress < FileSystemStatusCode > errorCode ,
270
270
CancellationToken cancellationToken ) ;
271
271
272
+ /// <summary>
273
+ /// Restores <paramref name="source"/> from the RecycleBin to <paramref name="destination"/> fullPath
274
+ /// </summary>
275
+ /// <param name="source">The source Recycle Bin item path</param>
276
+ /// <param name="destination">The destination fullPath to restore to</param>
277
+ /// <param name="progress">Progress of the operation</param>
278
+ /// <param name="errorCode">Status of the operation</param>
279
+ /// <param name="cancellationToken">Can be cancelled with <see cref="CancellationToken"/></param>
280
+ /// <returns><see cref="IStorageHistory"/> where:
281
+ /// <br/>
282
+ /// Source: The trash item fullPath
283
+ /// <br/>
284
+ /// Destination: The <paramref name="destination"/> item fullPath (as <see cref="PathWithType"/>) the <paramref name="source"/> has been restored
285
+ /// </returns>
286
+ Task < IStorageHistory > RestoreItemsFromTrashAsync ( IList < IStorageItem > source ,
287
+ IList < string > destination ,
288
+ IProgress < float > progress ,
289
+ IProgress < FileSystemStatusCode > errorCode ,
290
+ CancellationToken cancellationToken ) ;
291
+
292
+ /// <summary>
293
+ /// Restores <paramref name="source"/> from the RecycleBin to <paramref name="destination"/> fullPath
294
+ /// </summary>
295
+ /// <param name="source">The source Recycle Bin item path</param>
296
+ /// <param name="destination">The destination fullPath to restore to</param>
297
+ /// <param name="progress">Progress of the operation</param>
298
+ /// <param name="errorCode">Status of the operation</param>
299
+ /// <param name="cancellationToken">Can be cancelled with <see cref="CancellationToken"/></param>
300
+ /// <returns><see cref="IStorageHistory"/> where:
301
+ /// <br/>
302
+ /// Source: The trash item fullPath
303
+ /// <br/>
304
+ /// Destination: The <paramref name="destination"/> item fullPath (as <see cref="PathWithType"/>) the <paramref name="source"/> has been restored
305
+ /// </returns>
306
+ Task < IStorageHistory > RestoreFromTrashAsync ( IStorageItem source ,
307
+ string destination ,
308
+ IProgress < float > progress ,
309
+ IProgress < FileSystemStatusCode > errorCode ,
310
+ CancellationToken cancellationToken ) ;
311
+
312
+ /// <summary>
313
+ /// Restores <paramref name="source"/> from the RecycleBin to <paramref name="destination"/> fullPath
314
+ /// </summary>
315
+ /// <param name="source">The source Recycle Bin item path</param>
316
+ /// <param name="destination">The destination fullPath to restore to</param>
317
+ /// <param name="progress">Progress of the operation</param>
318
+ /// <param name="errorCode">Status of the operation</param>
319
+ /// <param name="cancellationToken">Can be cancelled with <see cref="CancellationToken"/></param>
320
+ /// <returns><see cref="IStorageHistory"/> where:
321
+ /// <br/>
322
+ /// Source: The trash item fullPath
323
+ /// <br/>
324
+ /// Destination: The <paramref name="destination"/> item fullPath (as <see cref="PathWithType"/>) the <paramref name="source"/> has been restored
325
+ /// </returns>
326
+ Task < IStorageHistory > RestoreItemsFromTrashAsync ( IList < IStorageItemWithPath > source ,
327
+ IList < string > destination ,
328
+ IProgress < float > progress ,
329
+ IProgress < FileSystemStatusCode > errorCode ,
330
+ CancellationToken cancellationToken ) ;
331
+
272
332
/// <summary>
273
333
/// Restores <paramref name="source"/> from the RecycleBin to <paramref name="destination"/> fullPath
274
334
/// </summary>
0 commit comments