【发布时间】:2020-12-13 10:42:49
【问题描述】:
我正在尝试删除这个项目文件夹,但即使在我运行 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 同步并多次重新启动它。我在微软论坛上找到的建议似乎没有帮助。即使暂停同步后,文件夹仍显示蓝色圆形箭头 - 仍在同步?
【问题讨论】:
标签: onedrive