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

Commit b0831980 authored by Ben Lin's avatar Ben Lin Committed by Android (Google) Code Review
Browse files

Merge "Allow folders to be copied into Downloads." into oc-dev

parents 9d4804e9 8c0ef130
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