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 4d05c8c + fcc00ae commit 853dfcfCopy full SHA for 853dfcf
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