spacedrive/.tasks/FILE-002-file-deletion-job.md
2025-09-06 21:00:37 -04:00

964 B

id, title, status, assignee, parent, priority, tags, whitepaper
id title status assignee parent priority tags whitepaper
FILE-002 File Deletion Job Done james FILE-000 High
core
jobs
file-ops
Section 4.4

Description

A job for handling file and directory deletion. This job will be orchestrated by the Action System and provides different modes for deletion, ensuring safe and reliable file removal.

Implementation Notes

  • The DeleteJob will be defined in src/operations/files/delete/job.rs.
  • It supports multiple deletion modes, including Trash and Permanent deletion.
  • The implementation includes platform-specific logic for finding the correct trash directory on Unix, macOS, and Windows.
  • The job is resumable, tracking completed deletions to ensure it can recover from interruptions.

Acceptance Criteria

  • The FileDeleteAction correctly dispatches a DeleteJob.
  • The job can move files to the system's trash location.
  • The job supports permanent file deletion.