We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 46b2b36 + feecba7 commit b16eb5bCopy full SHA for b16eb5b
apps/files/src/actions/moveOrCopyAction.ts
@@ -230,6 +230,11 @@ async function openFilePickerForAction(
230
// We don't want to show the current nodes in the file picker
231
return !fileIDs.includes(n.fileid)
232
})
233
+ .setFilter((n: Node) => {
234
+ // We only want to show folders in the file picker
235
+ // We don't want to show encrypted folders in the file picker
236
+ return !(n.attributes?.['type'] !== "directory" || n.attributes?.['is-encrypted'] === 1)
237
+ })
238
.setMimeTypeFilter([])
239
.setMultiSelect(false)
240
.startAt(dir)
0 commit comments