Skip to content

File is getting deleted even when create_file and delete_file returns STATUS_ACCESS_DENIED #14

@ajaykumargdr

Description

@ajaykumargdr

Environment

  • Windows version: Windows 11 Pro (23H2)
  • Processor architecture: x86
  • Dokany version: 2.2.0.1000

Description

We are trying to restrict deletion of file in some predefined cases. We tried returning STATUSS_ACCESS_DENIED from delete_file if the predefined condition are met. But later we got to know that delete_file is not getting called all the time when a file is getting deleted. So we also tried returning STATUSS_ACCESS_DENIED in create_file if delete_on_close is to true and predefined conditions met, but this also not preventing the file from getting deleted.

We also went thought the Question about preventing dokan delete a file discussion. We tried this fix but it didn't work for us.

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