tywtyw2002
V2EX  ›  问与答

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

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

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