有一个我试图删除的项目文件夹,但它一直拒绝我,甚至在我运行rm -force
之后。它向我展示了以下内容:
is an NTFS junction point. Use the Force parameter to delete or modify this object.
At line:1 char:1
+ rm .\db\
+ ~~~~~~~~
+ CategoryInfo : WriteError: (C:\Users\KenGon...git\objects\db\:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
。
rm : There is a mismatch between the tag specified in the request and the tag present in the reparse point
At line:1 char:1
+ rm .\db\ -force
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-Item], Win32Exception
+ FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.RemoveItemCommand
当它移动到文件夹中,并尝试列出文件夹内容时,它向我显示以下内容:
ls : The tag present in the reparse point buffer is invalid.
At line:1 char:1
+ ls
+ ~~
+ CategoryInfo : ReadError: (C:\Users\KenGon....git\objects\db:String) [Get-ChildItem], IOException
+ FullyQualifiedErrorId : DirIOError,Microsoft.PowerShell.Commands.GetChildItemCommand
有什么方法可以删除这个文件夹吗?我已经停止了与OneDrive的同步,并多次重启。我在微软论坛上找到的建议似乎没有帮助。即使在暂停同步后,文件夹仍显示蓝色圆形箭头-是否仍在同步?
发布于 2020-12-17 01:30:08
这很愚蠢,但我运行了chkdsk /f /r
,不得不硬启动我的计算机。不确定导致文件夹不可变的确切错误是什么。当我试图删除正在同步的OneDrive时,似乎有一些损坏的数据,导致了一些问题。
https://stackoverflow.com/questions/63567012
复制相似问题