We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 04bcae5 + feecba7 commit 0a3cefeCopy full SHA for 0a3cefe
apps/files/src/actions/moveOrCopyAction.ts
@@ -241,6 +241,11 @@ async function openFilePickerForAction(
241
// We don't want to show the current nodes in the file picker
242
return !fileIDs.includes(n.fileid)
243
})
244
+ .setFilter((n: Node) => {
245
+ // We only want to show folders in the file picker
246
+ // We don't want to show encrypted folders in the file picker
247
+ return !(n.attributes?.['type'] !== "directory" || n.attributes?.['is-encrypted'] === 1)
248
+ })
249
.setMimeTypeFilter([])
250
.setMultiSelect(false)
251
.startAt(dir)
0 commit comments