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