We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e28b297 + fcc00ae commit f708fc4Copy full SHA for f708fc4
1 file changed
apps/files/src/actions/moveOrCopyAction.ts
@@ -221,6 +221,10 @@ 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
+ // Show only non-encrypted directories in the file picker
226
+ return !(n.attributes?.['type'] !== "directory" || n.attributes?.['is-encrypted'] === 1)
227
+ })
228
.setCanPick((n) => {
229
const hasCreatePermissions = (n.permissions & Permission.CREATE) === Permission.CREATE
230
return hasCreatePermissions
0 commit comments