Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c0ef130 authored by Ben Lin's avatar Ben Lin
Browse files

Allow folders to be copied into Downloads.

Test: Manually tested.
Bug: 37156385
Change-Id: Icf13e9cb36eb41f4b4cf55ed0ec7d9239c4af8b4
parent 0b3f300a
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -272,12 +272,6 @@ class CopyJob extends ResolvedResourcesJob {
        Metrics.logFileOperation(service, operationType, mResolvedDocs, mDstInfo);
    }

    @Override
    boolean isEligibleDoc(DocumentInfo doc, RootInfo root) {
        // Can't copy folders to downloads, because we don't show folders there.
        return !root.isDownloads() || !doc.isDirectory();
    }

    /**
     * Checks whether the destination folder has enough space to take all source files.
     * @return true if the root has enough space or doesn't provide free space info; otherwise false