如果文件已打开,则不要向 inotifywait 发送修改事件
我在 Windows 10 Pro 上使用 VSC 作为编辑器,并希望在文件更改时同步到远程服务器。 我使用 Debian 客户系统安装了 WSL 如果我运行这个脚本 while inotifywait -r -e modify,create,delete /path/to/folder; do rsync -rltzv --progress --chmod=0600 --exclude=.git/ --exclude=.vscode /path/to/folder [email protected]:~/remote/folder; d...