Skip to content

Commit bf653ca

Browse files
committed
Fix deleting folder too big for recycle bin
1 parent f743f2e commit bf653ca

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Files.App/Utils/Storage/Operations/FileOperationsHelpers.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,6 @@ public static Task SetClipboard(string[] filesToCopy, DataPackageOperation opera
271271
// Right before deleting item
272272
op.PreDeleteItem += (s, e) =>
273273
{
274-
// E_FAIL, stops operation
275-
if (!permanently && !e.Flags.HasFlag(ShellFileOperations.TransferFlags.DeleteRecycleIfPossible))
276-
throw new Win32Exception(HRESULT.COPYENGINE_E_RECYCLE_BIN_NOT_FOUND);
277-
278274
sizeCalculator.ForceComputeFileSize(e.SourceItem.GetParsingPath());
279275
fsProgress.FileName = e.SourceItem.Name;
280276
fsProgress.Report();

0 commit comments

Comments
 (0)