File doesn't unlock after directory change #20117

Open
opened 2026-01-31 07:04:04 +00:00 by claunia · 0 comments
Owner

Originally created by @saviusz on GitHub (Jun 20, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

10.0.22621.0

Other Software

No response

Steps to reproduce

  1. Open folder (eg. from icon context menu)
  2. cd into parent directory
  3. try to delete last visited folder

Expected Behavior

File should be removed, or some other error should be displayed

Actual Behavior

Issued command results in error, informing about lack of access to file ("File is locked by another process"). Happens both in PowerShell and CMD.

Originally created by @saviusz on GitHub (Jun 20, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number 10.0.22621.0 ### Other Software _No response_ ### Steps to reproduce 1. Open folder (eg. from icon context menu) 2. cd into parent directory 3. try to delete last visited folder ### Expected Behavior File should be removed, or some other error should be displayed ### Actual Behavior Issued command results in error, informing about lack of access to file ("File is locked by another process"). Happens both in PowerShell and CMD.
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 07:04:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20117