Skip to content

SMB: Delete/trash fails with 'Path does not exist' #230

@BrianLeishman

Description

@BrianLeishman

Bug

Attempting to delete (move to trash) a file on an SMB share fails with:

Unable to move selection to Trash: Path does not exist: smb://storage/Public/shipping-label-fedex real test (2).zpl

Expected Behavior

Deleting a file on an SMB share should either:

  1. Permanently delete the file via the sidecar (SMB has no trash concept), or
  2. Show a confirmation dialog explaining the file will be permanently deleted since SMB doesn't support trash

Steps to Reproduce

  1. Navigate to an SMB share (e.g., smb://storage/Public/)
  2. Select a file
  3. Press Delete or use the context menu to delete
  4. Error toast appears: "Unable to move selection to Trash: Path does not exist"

Root Cause

The trash operation is likely using the local trash crate which doesn't understand smb:// URIs. SMB file deletion needs to go through the sidecar's delete method instead.

Screenshot

image

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