We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb8c800 commit 264f3b8Copy full SHA for 264f3b8
apps/files/src/actions/moveOrCopyAction.ts
@@ -222,6 +222,11 @@ async function openFilePickerForAction(
222
// We don't want to show the current nodes in the file picker
223
return !fileIDs.includes(n.fileid)
224
})
225
+ .setFilter((n: Node) => {
226
+ // We only want to show folders in the file picker
227
+ // We don't want to show encrypted folders in the file picker
228
+ return !(n.attributes?.['type'] !== "directory" || n.attributes?.['is-encrypted'] === 1)
229
+ })
230
.setCanPick((n) => {
231
const hasCreatePermissions = (n.permissions & Permission.CREATE) === Permission.CREATE
232
return hasCreatePermissions
0 commit comments