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

如何使用 Python 監(jiān)視和監(jiān)視新創(chuàng)建的文件的 ftp 掛

How to watch and and monitor ftp mounted point for new created files using Python(如何使用 Python 監(jiān)視和監(jiān)視新創(chuàng)建的文件的 ftp 掛載點(diǎn))
本文介紹了如何使用 Python 監(jiān)視和監(jiān)視新創(chuàng)建的文件的 ftp 掛載點(diǎn)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我可以使用基于 inotify 內(nèi)核子系統(tǒng)的解決方案來(lái)查看本地目錄.還有一些 Python 項(xiàng)目也在 inotify 之上運(yùn)行,例如 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.

我已經(jīng)使用 curlftpfs 在本地目錄中安裝了遠(yuǎn)程 ftp 服務(wù)器,所以現(xiàn)在所有同步都很容易.但 inotify 無(wú)法查看本地目錄等網(wǎng)絡(luò)掛載點(diǎn).

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 服務(wù)器.我怎樣才能像使用基于 inotify 的解決方案的本地目錄一樣實(shí)現(xiàn).

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.

推薦答案

它幾乎無(wú)法工作.FTP 協(xié)議沒(méi)有 API 來(lái)通知客戶端有關(guān)更改.curlftpfs 必須不斷地輪詢遠(yuǎn)程文件夾以提供通知給 inotify 或其他類似工具.它幾乎沒(méi)有這樣做.

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.

參見(jiàn)例如 監(jiān)控遠(yuǎn)程 FTP 目錄.

這篇關(guān)于如何使用 Python 監(jiān)視和監(jiān)視新創(chuàng)建的文件的 ftp 掛載點(diǎn)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

Why I cannot make an insert to Python list?(為什么我不能插入 Python 列表?)
Insert a column at the beginning (leftmost end) of a DataFrame(在 DataFrame 的開(kāi)頭(最左端)插入一列)
Python psycopg2 not inserting into postgresql table(Python psycopg2 沒(méi)有插入到 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:“浮動(dòng)對(duì)象不可下標(biāo))
主站蜘蛛池模板: 国产精品久久久久不卡 | 亚洲毛片| 在线观看免费av网 | 精品亚洲一区二区三区四区五区高 | 伊人色综合久久天天五月婷 | 亚洲成人精品视频 | 99热在线播放 | 欧美福利视频 | 一区二区中文 | 国产精品久久久久久妇女 | 国产精品视频久久久久久 | 一区二区福利视频 | 涩涩视频在线观看 | 欧美中文字幕一区二区 | 国产精品区一区二区三 | 午夜成人免费视频 | 成人免费视频网站在线观看 | 伊人看片 | 国产免费一区二区 | 日韩欧美在 | 青青草一区二区 | 国产精品亚洲视频 | 精品一区二区三区中文字幕 | 亭亭五月激情 | 91国产视频在线观看 | av网站在线播放 | 亚洲精品国产第一综合99久久 | av天天爽 | 99精品免费久久久久久日本 | 韩国主播午夜大尺度福利 | 视频一区中文字幕 | 一本大道久久a久久精二百 欧洲一区二区三区 | 99久久精品免费视频 | 国产伦精品一区二区三区精品视频 | 五月综合激情在线 | 毛片一区二区三区 | 精品一区二区三 | 久久9视频 | 在线中文字幕日韩 | 国产三级一区二区 | 久久久久久久久久久久91 |