File doesn't unlock after directory change #20120

Closed
opened 2026-01-31 07:04:06 +00:00 by claunia · 3 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:06 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jun 20, 2023):

This should be fixed in 1.18, the #15280 change I believe

@zadjii-msft commented on GitHub (Jun 20, 2023): This should be fixed in 1.18, the #15280 change I believe
Author
Owner

@lhecker commented on GitHub (Jun 20, 2023):

Yep, this is a duplicate of #5506. /dup #5506
You can install "Windows Terminal Preview" from the app store to test it out!

@lhecker commented on GitHub (Jun 20, 2023): Yep, this is a duplicate of #5506. /dup #5506 You can install "Windows Terminal Preview" from the app store to test it out!
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Jun 20, 2023):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (Jun 20, 2023): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20120