gpt4 book ai didi

windows - rm -rf 没有完全清理目录

转载 作者:可可西里 更新时间:2023-11-01 11:53:22 24 4
gpt4 key购买 nike

首先,这是windows系统,不是linux。在我的 makefile 中,我正在做 make clean

rm -rf output

但是,第一次运行时,会报错

rm: cannot lstat `foo.txt': Permission denied

即使执行命令后目录输出完全为空。现在,如果我第二次运行命令,

rm -rf output

成功删除输出。关于为什么它第一次不起作用的任何想法?并且文件 foo.txt 没有在任何地方打开。

最佳答案

不幸的是 Windows 是这里的问题。

我假设您正在 CygWin 中运行,并且后台有一些东西妨碍了您。有太多的可能性无法计数:

  • 杀毒软件?
  • 回收站?
  • 应用程序体验引擎?

一段时间以来,这一直是 Bugzilla 人员的一个长期运行的错误,请查看 bug 545015 .. 他们通过以下方式解决了这个问题:

  1. In the local group policy editor: Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Application Compatibility

Select Turn Off Application Compatibility Engine Select Enabled under the Settings tab Select Turn off Program Compatibility Assistant Select Enabled under the Settings tab

  1. Turn off the file indexation and the application experience services.

  2. Reboot.

关于windows - rm -rf 没有完全清理目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23747323/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com