tywtyw2002
V2EX  ›  问与答

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

  •  
  •   tywtyw2002 · Apr 19, 2013 · 3469 views
    This topic created in 4857 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   ·   1176 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:47 · PVG 01:47 · LAX 10:47 · JFK 13:47
    ♥ Do have faith in what you're doing.