久久久久久久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:“浮動對象不可下標)
主站蜘蛛池模板: 久久精品二区亚洲w码 | 亚洲色图综合 | 精品一区二区免费视频 | av网站在线免费观看 | 91中文字幕在线观看 | 欧美国产视频 | 久久久久黑人 | 午夜欧美 | 一区二区三区欧美大片 | 国产a一区二区 | zzzwww在线看片免费 | 成人在线视频免费观看 | 亚洲激情综合 | 精品一区二区三区在线观看 | 国产成人av在线播放 | 国产免费xxx | 亚洲午夜视频 | 中文一区二区 | 在线观看免费黄色片 | 国产成人a亚洲精品 | www,黄色,com| 成人在线一区二区 | 日韩欧美中文 | 亚洲精品一区二区三区免 | 欧美 日韩 在线播放 | 国产精品美女久久久久久免费 | 欧美成人免费在线视频 | 欧美一a一片一级一片 | 欧美日韩免费 | 国产97碰免费视频 | 可以免费观看的av片 | 国产一区二区欧美 | 日韩欧美精品在线 | 日韩国产欧美一区 | 日日干综合 | 国产福利在线 | 精品久久一 | 国产乱一区二区三区视频 | 成人精品一区二区三区 | 999久久久国产精品 欧美成人h版在线观看 | 欧美视频中文字幕 |