Skip to content

Commit 853dfcf

Browse files
committed
Merge #294 [V32] Filter files and e2ee from move or copy dialog
2 parents 4d05c8c + fcc00ae commit 853dfcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/files/src/actions/moveOrCopyAction.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ async function openFilePickerForAction(
221221
// We don't want to show the current nodes in the file picker
222222
return !fileIDs.includes(n.fileid)
223223
})
224+
.setFilter((n: Node) => {
225+
// Show only non-encrypted directories in the file picker
226+
return !(n.attributes?.['type'] !== "directory" || n.attributes?.['is-encrypted'] === 1)
227+
})
224228
.setCanPick((n) => {
225229
const hasCreatePermissions = (n.permissions & Permission.CREATE) === Permission.CREATE
226230
return hasCreatePermissions

0 commit comments

Comments
 (0)