tywtyw2002
V2EX  ›  问与答

dropbox是根据什么判断文件是否被修改过的?

  •  
  •   tywtyw2002 · Apr 19, 2013 · 3581 views
    This topic created in 4972 days ago, the information mentioned may be changed or developed.
    一直没搞明白,dropbox是怎么判断文件是否修改了的。

    遍历目录也是很浪费时间的呀。。
    2 replies  •  1970-01-01 08:00:00 +08:00
    friskfly
    friskfly
    Apr 19, 2013
    1
    每次开机启动建立一次索引,启动后由系统提供的文件改动api来触发更新。
    chemhack
    chemhack
    Apr 19, 2013
    2
    inotify,fsevents,FindFirstChangeNotification
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   956 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 22:45 · PVG 06:45 · LAX 14:45 · JFK 17:45
    ♥ Do have faith in what you're doing.