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 568bd4f commit c6d8561Copy full SHA for c6d8561
apps/files/src/actions/moveOrCopyAction.ts
@@ -211,6 +211,11 @@ async function openFilePickerForAction(
211
// We don't want to show the current nodes in the file picker
212
return !fileIDs.includes(n.fileid)
213
})
214
+ .setFilter((n: Node) => {
215
+ // We only want to show folders in the file picker
216
+ // We don't want to show encrypted folders in the file picker
217
+ return !(n.attributes?.['type'] !== "directory" || n.attributes?.['is-encrypted'] === 1)
218
+ })
219
.setMimeTypeFilter([])
220
.setMultiSelect(false)
221
.startAt(dir)
0 commit comments