douxiduan8344 2017-02-27 12:05
浏览 106
已采纳

使用os.Rename移动文件,触发CREATE然后CHMOD

using go's os like so:

os.Rename(oldpath,newpath)

and watching the destination folder using fsnotify

causes 2 events to fire, CREATE and CHMOD

can't seem to understand why CHMOD is fired.

  • tried listening with python's watchdog shows 2 events as well, file creation and folder modification.

  • parent folder perms are 0777 file perms are 0666 (default).

  • I'm on macOS
  • 写回答

1条回答 默认 最新

  • doudg60800 2017-02-27 17:17
    关注

    @JimB pointed me to the correct answer, this is a bug concerning with macOS spotlight indexing.

    If anyone want's to track this, reported bug

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码