Skip to content

Commit fcc00ae

Browse files
authored
Refactor file picker filter to exclude encrypted folders
1 parent 7fe6b86 commit fcc00ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/files/src/actions/moveOrCopyAction.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ async function openFilePickerForAction(
222222
return !fileIDs.includes(n.fileid)
223223
})
224224
.setFilter((n: Node) => {
225-
// We only want to show folders in the file picker
226-
// We don't want to show encrypted folders in the file picker
225+
// Show only non-encrypted directories in the file picker
227226
return !(n.attributes?.['type'] !== "directory" || n.attributes?.['is-encrypted'] === 1)
228227
})
229228
.setCanPick((n) => {

0 commit comments

Comments
 (0)