Skip to content

MacFileUtils.moveToTrash() doesn't work in a sandboxed app #887

@sobakasu

Description

@sobakasu

jna-platform 4.5.0
java version "1.8.0_151"
macOS Sierra 10.12.4

on an app running in a sandbox

FileUtils.getInstance().moveToTrash(files.toArray(new File[0]));

I get an error:

"The trash was not found in its expected location (/Users/andrew/Library/Containers/xxx/Data/.Trash)"

lines 77-81 could probably be safely removed and that would fix the issue. maybe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions