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

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

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥15 深度学习残差模块模型
  • ¥50 怎么判断同步时序逻辑电路和异步时序逻辑电路
  • ¥15 差动电流二次谐波的含量Matlab计算
  • ¥15 Can/caned 总线错误问题,错误显示控制器要发1,结果总线检测到0
  • ¥15 C#如何调用串口数据
  • ¥15 MATLAB与单片机串口通信
  • ¥15 L76k模块的GPS的使用
  • ¥15 请帮我看一看数电项目如何设计
  • ¥23 (标签-bug|关键词-密码错误加密)