久久久久久久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 超時)
主站蜘蛛池模板: 韩日在线| 久久久亚洲 | 国产高清一区二区 | 国产激情视频 | 国产精品视频免费观看 | 日本成人免费观看 | 97超碰站 | 精品成人免费一区二区在线播放 | 天天天天操 | 天堂在线91 | 日韩伦理一区二区 | 亚洲精品免费看 | 中文在线一区 | 久久人人爽人人爽人人片av免费 | 国产成人高清成人av片在线看 | 国产在线中文字幕 | 免费观看一级特黄欧美大片 | 国产影音先锋 | 99免费精品 | 精品视频免费 | 国产亚洲欧美日韩精品一区二区三区 | 婷婷一级片| 欧美电影在线观看网站 | 成人二区 | 免费视频一区二区 | 精品一二三区 | 国产精品一区二区在线 | 免费v片 | 久久com | 日p视频免费看 | 羞羞视频在线免费 | 亚洲精品乱码久久久久v最新版 | 国产伦精品一区二区三区照片91 | 北条麻妃国产九九九精品小说 | 高清色 | 成人精品一区二区三区中文字幕 | 亚洲精品66 | 久久久高清 | 亚洲精品性视频 | 国产精品久久久久久久 | 人干人操 |