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.
2 parents 02f32d1 + c6d8561 commit 0d116ebCopy full SHA for 0d116eb
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
.setMimeTypeFilter([])
231
.setMultiSelect(false)
232
.startAt(dir)
0 commit comments