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

如何從 .NET 應用程序中的 FTP 協議獲取目錄文件大

How to get a directories file size from an FTP protocol in a .NET application(如何從 .NET 應用程序中的 FTP 協議獲取目錄文件大小)
本文介紹了如何從 .NET 應用程序中的 FTP 協議獲取目錄文件大小的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

I am currently making a small .NET console application to do an automateed backup of some of my files onto my server. The issue that I am running into is that I've had some bad weather on my end which led to some power and network outages. During this time I noticed that a good portion of my files didn't go through or got corrupt. I was wondering if there was a way to get a size of the folder on the other end and see if the file names, number of files, and total directory size match up. I've tried WinSCP and NcFTP as ways to transfer files over, but I haven't seen anything regarding getting a proper filesize.

This is pretty much a windows to windows transfer so if there is a command line argument that gives me back a size through the FTP client that would be great.

解決方案

There is no standard way to request "total size of files in this directory". You can ask for each file size individually via SIZE file.txt, or you can ask for ls -l of an entire directory and parse the file sizes out.

這篇關于如何從 .NET 應用程序中的 FTP 協議獲取目錄文件大小的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

ASP.NET Core authenticating with Azure Active Directory and persisting custom Claims across requests(ASP.NET Core 使用 Azure Active Directory 進行身份驗證并跨請求保留自定義聲明)
ASP.NET Core 2.0 Web API Azure Ad v2 Token Authorization not working(ASP.NET Core 2.0 Web API Azure Ad v2 令牌授權不起作用)
ASP Core Azure Active Directory Login use roles(ASP Core Azure Active Directory 登錄使用角色)
How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API(如何獲取守護進程或服務器到 C# ASP.NET Web API 的 Azure AD OAuth2 訪問令牌和刷新令牌) - IT屋-程序員軟件開發技
.Net Core 2.0 - Get AAD access token to use with Microsoft Graph(.Net Core 2.0 - 獲取 AAD 訪問令牌以與 Microsoft Graph 一起使用)
Azure KeyVault Active Directory AcquireTokenAsync timeout when called asynchronously(異步調用時 Azure KeyVault Active Directory AcquireTokenAsync 超時)
主站蜘蛛池模板: 午夜看电影在线观看 | 麻豆精品国产91久久久久久 | 国产一区二区三区免费视频 | av片免费| 成人性视频免费网站 | 免费在线观看一级毛片 | av在线播放一区二区 | 成人av网站在线观看 | 久久久91精品国产一区二区三区 | 欧美 日韩 在线播放 | 这里精品 | 91免费福利视频 | 欧美精品欧美精品系列 | 狠狠操狠狠干 | 国产精品国产三级国产播12软件 | 在线免费观看欧美 | 中文字幕日韩一区 | 欧美三级电影在线播放 | 欧美日韩网站 | 怡红院怡春院一级毛片 | 欧美国产一区二区三区 | 欧美成年黄网站色视频 | 精品国产欧美 | 伊人中文字幕 | 日韩视频精品在线 | 成人网在线观看 | 国产1区2区在线观看 | 亚洲国产欧美91 | 97av视频在线 | 国产精品久久久久久久免费大片 | 欧美黄色免费网站 | 亚洲精彩免费视频 | 69亚洲精品| 欧美国产精品一区二区三区 | 亚洲高清在线免费观看 | 天天欧美 | 九九热精品视频 | 精品久久久久久红码专区 | 草草精品 | 久久综合av | 亚洲乱码一区二区三区在线观看 |