久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何使用 Python 監視和監視新創建的文件的 ftp 掛

How to watch and and monitor ftp mounted point for new created files using Python(如何使用 Python 監視和監視新創建的文件的 ftp 掛載點)
本文介紹了如何使用 Python 監視和監視新創建的文件的 ftp 掛載點的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我可以使用基于 inotify 內核子系統的解決方案來查看本地目錄.還有一些 Python 項目也在 inotify 之上運行,例如 pyinotify、PyInotify, fsmonitor 和 看門狗.

I am able to watch local directories using inotify kernel subsystem based solutions. There are some python projects too which are working on top of inotify like pyinotify, PyInotify, fsmonitor and watchdog.

我已經使用 curlftpfs 在本地目錄中安裝了遠程 ftp 服務器,所以現在所有同步都很容易.但 inotify 無法查看本地目錄等網絡掛載點.

I have mounted remote ftp server in local directory using curlftpfs so all syncing is easy now. But inotify is not able to watch network mounted points like local directories.

我想跟蹤是否有新文件添加到 ftp 服務器.我怎樣才能像使用基于 inotify 的解決方案的本地目錄一樣實現.

I want to track if there is new files added to ftp server. How can I achieve like I do for local directory using inotify based solution.

推薦答案

它幾乎無法工作.FTP 協議沒有 API 來通知客戶端有關更改.curlftpfs 必須不斷地輪詢遠程文件夾以提供通知給 inotify 或其他類似工具.它幾乎沒有這樣做.

It can hardly work. The FTP protocol has no API to notify a client about the changes. The curlftpfs would have to continually poll the remote folder to provide the notification for inotify or other similar tool. It hardly does that.

您必須自己輪詢 FTP 文件夾.

You have to poll the FTP folder yourself.

參見例如 監控遠程 FTP 目錄.

這篇關于如何使用 Python 監視和監視新創建的文件的 ftp 掛載點的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Why I cannot make an insert to Python list?(為什么我不能插入 Python 列表?)
Insert a column at the beginning (leftmost end) of a DataFrame(在 DataFrame 的開頭(最左端)插入一列)
Python psycopg2 not inserting into postgresql table(Python psycopg2 沒有插入到 postgresql 表中)
list extend() to index, inserting list elements not only to the end(list extend() 索引,不僅將列表元素插入到末尾)
How to add element in Python to the end of list using list.insert?(如何使用 list.insert 將 Python 中的元素添加到列表末尾?)
TypeError: #39;float#39; object is not subscriptable(TypeError:“浮動對象不可下標)
主站蜘蛛池模板: 国产精品久久久久永久免费看 | 超碰在线观看免费版 | 国产日韩欧美综合 | 日韩 欧美 亚洲 | 日韩视频一区二区三区 | 免费看黄色大片 | 一级黄片毛片 | 天天操天天操天天操 | 在线免费看a | 毛片网页 | 免费的黄色网址 | 久久精品2 | 欧美一级网站 | 久久激情视频 | 久久精品综合 | 欧美一级片在线 | 伊人中文字幕 | 亚洲国产日本 | 亚洲激情综合网 | 日本中文字幕在线播放 | 日韩影院在线观看 | 欧美一级淫片bbb一84 | 看逼网站| 亚洲一区二区在线 | 一区在线观看 | 91国内精品| 久久亚洲欧美 | 亚洲欧美日韩一区二区 | 国产黄色大片 | 美女视频福利 | 日韩精品区 | 在线观看免费毛片 | 国产午夜精品视频 | 狠狠综合网 | 精品一区二区三区四区 | 天天摸夜夜操 | 成人看片网站 | 99综合网 | 亚洲精品综合 | 国产一级片在线播放 | av一二三 |