pysama
V2EX  ›  macOS

terminal 中删除文件/文件夹后, finder 不会同步刷新

  •  
  •   pysama · Nov 8, 2016 · 2889 views
    This topic created in 3502 days ago, the information mentioned may be changed or developed.

    如题,我在 terminal 中删除文件后,一定要重启 finder 或者切换目录后, finder 才会更新。否则还能看到已删除的文件。

    实在不知道怎么办? 特来求救

    系统: yosemite

    16 replies    2016-11-10 16:40:38 +08:00
    daiqiangbudainiu
        1
    daiqiangbudainiu  
       Nov 8, 2016
    又是文件系统的锅。我记得 Win 下边 explorer 可以时时刷新, cmd 里边删除文件, explorer 就跟着刷新了。说实话,有些细节方面, Win 确实比其他系统做得更好
    47jm9ozp
        2
    47jm9ozp  
       Nov 8, 2016
    呃,一般我不会 terminal 和 finder 同时用,不懂楼主什么样的应用场景。。
    zhouzm
        3
    zhouzm  
       Nov 8, 2016
    Because there isn ’ t a direct method to refresh Finder windows,you can Refresh a Window by Jumping to Parent Directory & Back:

    Command+Up Arrow followed by Command+Down Arrow
    pysama
        4
    pysama  
    OP
       Nov 8, 2016
    首先谢谢 LS 两位的回复。

    @warcraft1236 win 下的 totalCommander 我非常喜欢


    @ooxxcc 是这样的。本来我也没关注到这个事情。但是昨晚我在调试 create-react-app 的项目时,发现修改文件后, liveReload 不生效了。也就是说,文件修改了,但是 devServer 检测不到文件的变化。 然后我就注意到这个细节了(文件变更后, finder 也不会同步更新)。
    ynyounuo
        5
    ynyounuo  
       Nov 8, 2016   ❤️ 1
    用空白 profile 的 bash 试了一下
    没有任何问题
    kaichen
        6
    kaichen  
    PRO
       Nov 8, 2016
    你有没有打开 FileVault ?我在打开 FileVault 的时候会这样,关掉就好了。
    pysama
        7
    pysama  
    OP
       Nov 8, 2016
    最新进展: 我发现只有某个文件夹下存在这种问题。

    我很多代码都是统一放在一个大文件夹 gCode 下的(我把他当成 win 下面的一个独立盘符),只有在这个文件夹下面的操作才会有这种问题。在其他 desktop , downloads 目录都是正常的(而且 create-react-app 的 liveReload 也正常)
    pysama
        8
    pysama  
    OP
       Nov 8, 2016
    @zhouzm sometimes it works. more then that, I have to relaunch finder to refresh . thanks all the same.
    pysama
        9
    pysama  
    OP
       Nov 8, 2016
    @kaichen 完全没有哈。
    pysama
        10
    pysama  
    OP
       Nov 8, 2016
    看了下昨晚的日志,附上两天貌似相关的信息:

    22 : 19 windowServer:
    disable_update_timeout: UI updates were forcibly disabled by application "Finder" for over 1s ,server has re-enabled them

    22:20 windowServer:
    disable_update_likely_unbalanced: UI updates still disabled by appcation "Finder" after 15s (server forcibly re-enabled them after 1s) . likely an unbalanced disableUpdate call.
    SharkIng
        11
    SharkIng  
       Nov 8, 2016
    没事过删除文件,在 iTerm 下试过修改以及 Git pull 文件,都是试试生效的
    pysama
        12
    pysama  
    OP
       Nov 8, 2016
    目前用最简单粗暴的方式解决了。 把受影响的大文件夹改个名字就好了。 finder 正常了, create-react-app 也正常了

    虽然解决了,依然不知道是为什么。。
    Goooogle
        13
    Goooogle  
       Nov 8, 2016
    @ynyounuo 你好想问下 ^touch^rm 中的两个 ^ 是什么作用么 没找到合适的关键字搜索
    Goooogle
        15
    Goooogle  
       Nov 10, 2016
    @ynyounuo 好的多谢 原来省略最后一个^也可以

    话说现在 V2 收到回复貌似不会提醒
    ynyounuo
        16
    ynyounuo  
       Nov 10, 2016
    @Goooogle 因为我被降权了 - -
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   926 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 20:50 · PVG 04:50 · LAX 13:50 · JFK 16:50
    ♥ Do have faith in what you're doing.